Jump to content

Paragraph spacing on long manufacturer description


Recommended Posts

Hi everyone,

 

the "more" feature on the manufacturer description is a great way to do some branding and improve SEO, especially in combination with nice formating and the use of headers.

 

But I have one problem on the default bootstrap theme: the paragraph spacing is too large for my taste, especially when you use headings.

 

Is there a way to change the paragraph height, but ONLY on the manufacturer pages. Or only on the long descriptions (categories, manufacturer, supplier, etc...) ?

 

Changing the overall paragraph height, I fear it might screw up the template layout in other places too.

 

Thanks for your help!

 

Dan

post-114428-0-18960900-1408020847_thumb.png

Link to comment
Share on other sites

Hi dioniz,

 

I am pretty sure it's a paragraph margin problem, not heading, because you can see in the screenshot that even between paragraphs without heading, the space is quite large.

 

I tried changing the code you suggested, it does not affect the paragraph space on the long manufacturer description. Is there another code place you can think of that might affect the paragraph spacing on the long manufacturer description?

Link to comment
Share on other sites

Sorry i missed that you want that on manufacturer page

 

I just tested this and every time i save, <br /> is added at the end of paragraph.

I don't think that's editor fault because i can't see it in editor.

Maybe a bug :wacko:

Link to comment
Share on other sites

Di Dioniz,

 

you are absolutely right about the <br></br> - I have that too! Strange, looks like a bug indeed!

 

Do you have an idea which .tpl file in the theme is used for the long manufacturer description? Maybe we can find the error there. Otherwise I will report a bug in forge.

Link to comment
Share on other sites

 

check configuration file of your tinymce editor

make sure there is no option like

        force_br_newlines : true,

 

Hi Milosz,

 

thanks for the reply. Which configuration file do you mean? This one? /js/tinymce.inc.js ?

 

UPDATE: I activated the extended TinyMCE menu following your guide, so the force_br_newlines was set to : false - still no difference.

 

What is strange is that in the TinyMCE editor, the spacing is correct, AND there is no sign of any breaks, no <br>, just <p> - but in the FO, there are extra <br>'s where they don't belong.

 

So it looks like PS is adding them somehow when rendering the page.

Edited by Mister Denial (see edit history)
Link to comment
Share on other sites

Yes, I tried that too, it doesn't change a thing. I thought too that the purifier might convert paragraphs into breaks, but it didn't.

 

The strange thing is, in the BO, in TinyMCE, the formating looks correct, there are no <br>'s when I look at the source code.

 

But in the FO, there they are, just like dioniz said.

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...