Posted 31 December 2010 - 11:12 AM
Posted 01 April 2012 - 09:45 AM
Maybe this will help others learning 2.0.
I had made use of the Category Description in designs with previous versions. After porting over to 2.0, those descriptions were no longer being shown. Using Page Manager, I added a block to the center column for the product-list page with the following block content:
<?php CategoryDescription(); ?>
Enclosing it in the div allows me to style it differently. After adding the block, I dragged it immediately below the Category Image block.
I discovered that the above adds space for the div when there is no CategoryDescription to display, so I added a check to only display the block if the CategoryDescription is not empty:
<?php if (getCategoryDescription() != ''): ?><div class='category_description'><?php CategoryDescription(); ?></div><?php endif; ?>
Thank you for such a great post DonH, it really helped. But please how can I make the description appear to the side of the image rather than the bottom. Thank you
Posted 01 April 2012 - 10:54 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users