rasmusberg Posted November 15, 2015 Share Posted November 15, 2015 Hi all! As the topic suggests, I want to hide/disable the heading of the default Prestashop category block. My theme also displays the current category's heading title, so the heading is showed two times. How can i disable the heading from the Prestashop category block? And also, is it in the plans ti enable this feature in the future?Thank you Regards Rasmus Berg Link to comment Share on other sites More sharing options...
Daresh Posted November 15, 2015 Share Posted November 15, 2015 Hi Rasmus! I thinks this is more a theme thing, not something that should be a feature. You can find it in blockcategories.tpl in your theme/modules/blockcategories. Delete the whole H2 tag and the block will have no title. <h2 class="title_block"> {if isset($currentCategory)} {$currentCategory->name|escape} {else} {l s='Categories' mod='blockcategories'} {/if} </h2> Link to comment Share on other sites More sharing options...
rasmusberg Posted November 15, 2015 Author Share Posted November 15, 2015 Thank you very much! I'll contact the authors of the theme I'm using so they can make it a future feature :-) Link to comment Share on other sites More sharing options...
rasmusberg Posted November 15, 2015 Author Share Posted November 15, 2015 Hmm it was a H4 class and I deleted it, but nothing happens... Link to comment Share on other sites More sharing options...
Daresh Posted November 15, 2015 Share Posted November 15, 2015 Depends on the specific theme, I was looking at the standard files, where it's h2. Try clearing the cache or something, if you deleted the right thing in the right place it must take effect. Link to comment Share on other sites More sharing options...
rasmusberg Posted November 15, 2015 Author Share Posted November 15, 2015 Tried that. I can see in the source code of my browser that it's h4 when using this theme, still nothing happens. I'll try contacting the theme authors instead. They might be interested in fixing it for future updates also... Thanks anyway mate Link to comment Share on other sites More sharing options...
Paulito Posted November 15, 2015 Share Posted November 15, 2015 (edited) Hello Sorry if I am barking up the wrong tree but, assuming you are using default theme as your image suggests then why not use a little bit of css .page-heading {display: none;} Before: http://screencast.com/t/JkeueNVjz6g After: http://screencast.com/t/siIGLgBCihHH .block .title_block, .block h4 {display: none;} Before: http://screencast.com/t/2Jt71kt2R After: http://screencast.com/t/FX9mA55z0Ojt Paul Edited November 15, 2015 by Paulito (see edit history) Link to comment Share on other sites More sharing options...
rasmusberg Posted November 15, 2015 Author Share Posted November 15, 2015 (edited) Thanks Paulito. No I'm using Panda theme. Bought on themeforest.net. The last CSS code worked perfectly anyway. Is the code hiding all of the H4 headings or only the one I need to hide? EDITED: Nevermind it's hiding all of them Edited November 15, 2015 by rasmusberg (see edit history) Link to comment Share on other sites More sharing options...
rasmusberg Posted November 15, 2015 Author Share Posted November 15, 2015 Is it possible for you to write a CSS code hiding only the heading for the categories block? Link to comment Share on other sites More sharing options...
Daresh Posted November 15, 2015 Share Posted November 15, 2015 Give us a link to the live site. Link to comment Share on other sites More sharing options...
Paulito Posted November 15, 2015 Share Posted November 15, 2015 Hello Try this: #categories_block_left .title_block {display:none;} Paul Link to comment Share on other sites More sharing options...
Daresh Posted November 15, 2015 Share Posted November 15, 2015 Paul's code should do the job Link to comment Share on other sites More sharing options...
rasmusberg Posted November 15, 2015 Author Share Posted November 15, 2015 Hello Try this: #categories_block_left .title_block {display:none;} Paul Thanks that worked perfectly! Link to comment Share on other sites More sharing options...
rasmusberg Posted November 15, 2015 Author Share Posted November 15, 2015 Yep. Thanks guys! 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