Mister Denial Posted August 14, 2014 Share Posted August 14, 2014 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 Link to comment Share on other sites More sharing options...
dioniz Posted August 14, 2014 Share Posted August 14, 2014 Are you sure that's paragraph <p> problem or is it heading problem? Anyway you can change paragraph in category.css in this code : .content_scene_cat p { margin-bottom: 0; } Link to comment Share on other sites More sharing options...
Mister Denial Posted August 18, 2014 Author Share Posted August 18, 2014 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 More sharing options...
dioniz Posted August 18, 2014 Share Posted August 18, 2014 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 Link to comment Share on other sites More sharing options...
Mister Denial Posted August 19, 2014 Author Share Posted August 19, 2014 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 More sharing options...
dioniz Posted August 19, 2014 Share Posted August 19, 2014 It's manufacturer.tpl but can't find anything related to those breaks there Link to comment Share on other sites More sharing options...
vekia Posted August 19, 2014 Share Posted August 19, 2014 check configuration file of your tinymce editor make sure there is no option like force_br_newlines : true, 2 Link to comment Share on other sites More sharing options...
Mister Denial Posted August 19, 2014 Author Share Posted August 19, 2014 (edited) 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 August 19, 2014 by Mister Denial (see edit history) Link to comment Share on other sites More sharing options...
Dh42 Posted August 19, 2014 Share Posted August 19, 2014 Have you tried turning off the html purifier on the preferences -> general tab in the back office. Link to comment Share on other sites More sharing options...
Mister Denial Posted August 21, 2014 Author Share Posted August 21, 2014 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 More sharing options...
jsilgo Posted November 15, 2015 Share Posted November 15, 2015 in themes/XXXXXXX/manufacturer.tpl change: {$manufacturer->description} for: {$manufacturer->description|replace:"<br />":""} 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now