Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Trying to keep line breaks in product description

Trying to keep line breaks in product description

Views: 1,550

Results 1 to 5 of 5
13 May 2014, 7:42 AM
#1
007mcfod avatar

007mcfod

New Zenner

Join Date:
May 2009
Location:
Wigan, UK
Posts:
11
Plugin Contributions:
0

Trying to keep line breaks in product description

Morning all,

im having an issue with my product description layouts,

my specifications for the goods im selling can be quite detailed, so I need line breaks to help make it more appealing on the eye, in the admin catalogue the breaks are as they should be, but on the live site all the lines are one after the other with no spaces, ie

should be:

test

test

test,

appears as:

test
test
test

other posts suggest commenting out the zen_clean_html code in the includes/modules /product_listing.php folder but ive tried this /zen_clean_html/ and it doesn't make any difference.

Appreciate any help you can offer

Regards

Damien

13 May 2014, 9:06 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,690
Plugin Contributions:
56

Re: Trying to keep line breaks in product description

Embed HTML (ie: <br> tags or <p>...</p> tags etc) in your description OR use the HTML Editor CKEditor from the Plugins area at the top of this page. The latter will be much easier if you have more than a small handful of products.

13 May 2014, 11:22 AM
#3
badarac avatar

badarac

Totally Zenned

Join Date:
Aug 2009
Location:
Longs, SC
Posts:
635
Plugin Contributions:
0

Re: Trying to keep line breaks in product description

Damien,
I responded basically the same thing to your PM.

13 May 2014, 10:02 PM
#4
007mcfod avatar

007mcfod

New Zenner

Join Date:
May 2009
Location:
Wigan, UK
Posts:
11
Plugin Contributions:
0

Re: Trying to keep line breaks in product description

thanks both, Badarac ill read your PM now as well

just while I get my head around what you've provided and check out the CKeditor, heres a few additional bits of info that may help

my editor box looks like this -

Attachment 14053

In the editor as im creating the item it looks like this -

this is a test

test

test

test

when I switch to html source it looks like this -

this is a test<br /><br /><u><b>test</b></u><br /><br /><i>test</i><br /><br />test<br />

the preview then looks fine

but the page on the site as discussed removes the spaces between the words, but leaves in the italics, underline and bold.

As I copy and paste in a lot of text (which I have tried running through a plain text editor before pasting in and no difference) do you still believe the CKeditor is the right way to go???

much appreciated

Damien

13 May 2014, 10:48 PM
#5
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Trying to keep line breaks in product description

007mcfod:

thanks both, Badarac ill read your PM now as welljust while I get my head around what you've provided and check out the CKeditor, heres a few additional bits of info that may helpmy editor box looks like this -Attachment 14053In the editor as im creating the item it looks like this - this is a testtesttesttestwhen I switch to html source it looks like this - this is a test

test

test

test
the preview then looks finebut the page on the site as discussed removes the spaces between the words, but leaves in the italics, underline and bold.As I copy and paste in a lot of text (which I have tried running through a plain text editor before pasting in and no difference) do you still believe the CKeditor is the right way to go???much appreciatedDamienIt may help to provide a link to your site. Does this issue appear in the default template? Perhaps something in the css is disabling the extra space. I'll say up front, I am not able at the moment to evaluate said causes, but as one can see in the posting guidelines it can only help. :)