Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email

Magento Forum

CSS for Product Descriptions? 
Jr. Member
Total Posts:  15
Joined:  2008-09-25

I have been running into some issues converting my product descriptions from Zen Cart to Magento.

Originally, the descriptions used a separate CSS file along with HTML code.

After much research, I figured out how to prevent Magento from adding <br/> to every line of HTML code by changing this line in the description.phtml file:

<?php echo $this->getProduct()->getDescription() ?>

My only question remaining is - where do I put the CSS file for the product description view? Is there an ideal way to link it so that it won’t be overwritten/broken in future upgrades? Should I just append it to an existing CSS file? It only needs to be used when displaying the detailed product description information.

Any help would be appreciated!

Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top