New Zenner
- Join Date:
- Aug 2008
- Posts:
- 36
- Plugin Contributions:
- 0
How do I enter a newline character in the product description
How do I enter a newline character in the product description. I have tried <br> after each line but that didn't work.
Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details
This cutover relies on some testing that is still incomplete so may be cancelled at short notice
Started by tkelley66 on 10 Sep 2008, 12:52 PM · Views: 1,372
New Zenner
How do I enter a newline character in the product description. I have tried <br> after each line but that didn't work.
New Zenner
try <br />
New Zenner
<br /> did not work.
Black Belt
Where are you looking for this formatting to display? The product listing pages strip out all HTML formatting because it might break the page when the description is shortened to the length set in admin. HTML closing tags could be cut off, causing many errors, so they are all removed.
New Zenner
So is there a way to have formatted text in the product descriptions on the category pages?
Black Belt
Yes, there is. It's relatively simple - comment out "zen_clean_html" in two places in a file. See this thread: Trying to add line breaks into description
New Zenner
bows
Thank you.
Tell staff why this post should be reviewed.