Guest Posted January 15, 2010 Share Posted January 15, 2010 New here, hello all! I am trying to find a way to get the product descriptions to automatically include </br> in the product description in the ACP control panel when you enter a new product. Does anyone know how to accomplish this. I have been copy and pasting my product information but on the site it just runs together without breaks. I can get it to display correctly if I input html code but is very time consuming. Thank You, The Joker Link to comment Share on other sites More sharing options...
jhande Posted January 15, 2010 Share Posted January 15, 2010 Check the add-ons section for a WYSIWYG editor, something like FCKEditor. - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 - Link to comment Share on other sites More sharing options...
Guest Posted January 15, 2010 Share Posted January 15, 2010 A quicker way is change in product_info.php <p><?php echo stripslashes($product_info['products_description']); ?></p> To <p><?php echo nl2br(stripslashes($product_info['products_description'])); ?></p> This will make your descriptions show the line break when you pasted in the code. Link to comment Share on other sites More sharing options...
jsi Posted January 16, 2010 Share Posted January 16, 2010 New here, hello all! I am trying to find a way to get the product descriptions to automatically include </br> in the product description in the ACP control panel when you enter a new product. Does anyone know how to accomplish this. I have been copy and pasting my product information but on the site it just runs together without breaks. I can get it to display correctly if I input html code but is very time consuming. Thank You, The Joker WYSIWYG editors do this for you. However, if you care about SEO, you would NOT use these. The description boxes support HTML. Its always best to do your descriptions on something like Dreamweaver and simply copy paste code into your description box. This keep SEO and looks as you want it. Many will argue WYSIWYG editors do not affect SEO, but I have specialized in SEO for many many years and I beg to differ. Dont ask why because if I share my secrets I would have to kill everyone that reads this. haha. (joke) mmmmmmmmmmmm. Doughnuts . . . haha. i said nuts. Link to comment Share on other sites More sharing options...
jsi Posted January 16, 2010 Share Posted January 16, 2010 A quicker way is change in product_info.php <p><?php echo stripslashes($product_info['products_description']); ?></p> To <p><?php echo nl2br(stripslashes($product_info['products_description'])); ?></p> This will make your descriptions show the line break when you pasted in the code. Great suggestion bktrain. Great suggestion. mmmmmmmmmmmm. Doughnuts . . . haha. i said nuts. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.