cancel
Showing results for 
Search instead for 
Did you mean: 

Simple problem - Unwanted line spacing wysiwyg short description

Simple problem - Unwanted line spacing wysiwyg short description

Hi all,
I'm brand new to developing so go easy on me!
Basically I have some unwanted line spacing in wysiwyg using Magento. 
First screenshot shows the code, second screenshot shows the result and unwanted space between header and bullets:
Any advice / teachings would be greatly appreciated,
Gracias amigos y amigas

Screen Shot 2016-10-11 at 10.28.20.pngScreen Shot 2016-10-11 at 10.29.08.png

Tags (2)
2 REPLIES

Re: Simple problem - Unwanted line spacing wysiwyg short description

Hello,

 

If you can provide the url, more help can be provided.

 

For css issues it is best to use firebug tool or inspect element on any browser.

 

This seems to be css issue, it can be checked easily through these tools.

Re: Simple problem - Unwanted line spacing wysiwyg short description

Open up this file: app/design/frontend/rwd/{THEME_NAME}/template/catalog/product/view.phtml

 

If it does not exist, copy it to your local theme from: app/design/frontend/rwd/default/template/catalog/product/view.phtml

 

You'll find in this file, these lines:

<?php if ($_product->getShortDescription()):?> <div class="short-description"> <div class="std"><?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?></div> </div> <?php endif;?>

Remove the "nl2br" PHP call that is in there prior to fetching the short description:

<?php if ($_product->getShortDescription()):?> <div class="short-description"> <div class="std"><?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?></div> </div> <?php endif;?>
OpenSource Expert | OpenSource Technologies | www.opensourcetechnologies.com
Magento plugins released: http://www.opensourcetechnologies.com/product/product-category/magento-extensions