So…I’m back with more tips for WP Ecommerce, and this one is regarding the category description.
By default the category description shows in a default font and will not wrap to the next line on your page very well. So it ends up looking really bad. To solve this issue, login to your server and open up “products_page.php” in your wp-shopping-cart directory. Then on line 113, you’ll see this line:
1 | echo "< pre>".$category_data[0]['description']."< /pre>"; |
Change that line to look like this:
1 | echo "<p>".$category_data[0]['description']."</p>"; |
That’s it!
So….until next time…
Other Posts You Might Like
Comments
3 comments




June 4, 2008
Hi Shayne… this is such a wonderful fix, thanks so much for detailing the code changes here. I’m wondering if you could outline another tweak to give the category description some padding? Otherwise it’s butting up against the category image. I really appreciate your efforts here to help us out with the webstore code.
December 31, 2008
Hi. I checked the products_page.php both in my wp-shopping-cart directory and the shop’s theme. Both have have the already but the category title and description are still beside the image not on the next line.
Thanks. Happy New Year btw.
December 31, 2008
Lheyanne, I’m not sure that is what this fix was supposed to do…if you’ll use the contact form and send me login info, I’ll take a look at it for you.