One of the things that makes WordPress special is that people give back. Even people who make their living off WordPress via their plugins or themes give back in some way, be it testing new versions, submitting patches, or even making suggestions and asking questions. I got my start by giving back and answering low-tech questions in the forums.
Thus it’s natural that, while testing Easy Digital Download’s new version, I reported problems upstream:
And perhaps more natural that I made my first attempt at a patch on Github for it as well:
My code patch is a total of three lines. Four if you count the one I deleted. That’s all it takes to help contribute. You could even fix a typo.
What does this have to do with ebooks? The patch I submitted was for the display of the [downloads]
shortcode, which will allow you to more easily display a flexible column list of your downloads. If you’ve seen my Catalog page, the books are listed with multiple items per line. But I’m not using any columns. With my code patch, you’ll be able to do this:
[downloads columns="0" thumbnails="true" orderby="title" order="ASC" buy_button="no" category="wp" price="no"]
Which outputs no columns and no breakpoints at all. Then you just need some CSS.
.edd_download_inner { float: left; width: 290px; margin-top: 10px; margin-bottom: 20px; margin-right: 15px; position: relative; height: 300px; padding-top: 10px; background: #F7F7F7; border: 1px solid #ddd; text-align: center; } .edd_downloads_list.edd_download_columns_0 { width: inherit; }
Voila! Flexible columns!