Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / How do I enter a newline character in the product description

How do I enter a newline character in the product description

Locked

Views: 1,372

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
10 Sep 2008, 12:52 PM
#1
tkelley66 avatar

tkelley66

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.

10 Sep 2008, 3:52 PM
#2
mcostaroberts avatar

mcostaroberts

New Zenner

Join Date:
May 2008
Posts:
1
Plugin Contributions:
0

Re: How do I enter a newline character in the product description

try <br />

29 Sep 2008, 8:29 PM
#3
tkelley66 avatar

tkelley66

New Zenner

Join Date:
Aug 2008
Posts:
36
Plugin Contributions:
0

Re: How do I enter a newline character in the product description

<br /> did not work.

29 Sep 2008, 9:01 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How do I enter a newline character in the product description

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.

29 Sep 2008, 11:08 PM
#5
ive_got_questions avatar

ive_got_questions

New Zenner

Join Date:
Sep 2008
Posts:
11
Plugin Contributions:
0

Re: How do I enter a newline character in the product description

So is there a way to have formatted text in the product descriptions on the category pages?

29 Sep 2008, 11:36 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How do I enter a newline character in the product description

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

29 Sep 2008, 11:44 PM
#7
ive_got_questions avatar

ive_got_questions

New Zenner

Join Date:
Sep 2008
Posts:
11
Plugin Contributions:
0

Re: How do I enter a newline character in the product description

bows

Thank you.