willcm Posted November 9, 2012 Share Posted November 9, 2012 Hi how do I remove the header and footer from specific pages e.g authentication? Thanks Will Link to comment Share on other sites More sharing options...
NemoPS Posted November 12, 2012 Share Posted November 12, 2012 Hey willcm, Which version are you using? You should be able to do it by placing a conditional "if" statement around the divs you want to hide, and then add something like this: {if $page_name != 'authentication'}<div to be hidden.....</div>{/if} This means the div will only be shown on pages that are not "authentication" Cheers Link to comment Share on other sites More sharing options...
willcm Posted November 12, 2012 Author Share Posted November 12, 2012 Thanks Nemo, so if I want to remove the right column on product-list.tpl it's like this in footer.tpl? {if $page_name != 'product-list'} <!-- Right --><div id="right_column" class="column grid_2 omega">{$HOOK_RIGHT_COLUMN}</div>{/if} Link to comment Share on other sites More sharing options...
NemoPS Posted November 12, 2012 Share Posted November 12, 2012 yes, but you should check the page name of the page by dumping the variable, just to be sure 1 Link to comment Share on other sites More sharing options...
willcm Posted November 12, 2012 Author Share Posted November 12, 2012 Hi Nemo, Thanks for replying, I apologise, I'm not a coder, how would I write this code to hide the right column on the products list? Thanks for your help - much appreciated Will Link to comment Share on other sites More sharing options...
NemoPS Posted November 12, 2012 Share Posted November 12, 2012 The page name is "category", so that code will be {if $page_name != 'category'} <!-- Right --> <div id="right_column" class="column grid_2 omega"> {$HOOK_RIGHT_COLUMN} </div> {/if} Link to comment Share on other sites More sharing options...
willcm Posted November 12, 2012 Author Share Posted November 12, 2012 Thanks for helping a newbie Nemo! 1 Link to comment Share on other sites More sharing options...
NemoPS Posted November 12, 2012 Share Posted November 12, 2012 You're welcome You can find some tuts in my website (my signature) if you want Link to comment Share on other sites More sharing options...
willcm Posted November 14, 2012 Author Share Posted November 14, 2012 Hi Nemo - Is there somewhere that lists all the page names? I just tried to dump the variables to get the name of the product page with this code and it gave an error: {php} $myvar = $this->get_template_vars('var'); var_dump($myvar); {/php} Or do you know the name of the product page? Link to comment Share on other sites More sharing options...
NemoPS Posted November 14, 2012 Share Posted November 14, 2012 Nope, you have to go in the selected page and write this: {$page_name|@debug_print_var} Link to comment Share on other sites More sharing options...
MFarhan Posted December 1, 2015 Share Posted December 1, 2015 Hello i want to remove complete header from a specific cms page. for example logo and header links. how can i remove that. Thanks Link to comment Share on other sites More sharing options...
NemoPS Posted December 2, 2015 Share Posted December 2, 2015 try #header {display:none} using this method to target the page: http://nemops.com/page-specific-css-javascript-prestashop/#.Vl65RXbnvmg Link to comment Share on other sites More sharing options...
MFarhan Posted December 2, 2015 Share Posted December 2, 2015 Thanks for your help. but where to add this code. i add it on the cms page. but didn't work. Link to comment Share on other sites More sharing options...
NemoPS Posted December 4, 2015 Share Posted December 4, 2015 global.css Link to comment Share on other sites More sharing options...
MFarhan Posted December 5, 2015 Share Posted December 5, 2015 Thanks its working and removed header from entire website. but if i have to remove header on just one cms page. is there any possibility? Link to comment Share on other sites More sharing options...
razaro Posted December 5, 2015 Share Posted December 5, 2015 It is depending from your template. Default one have this in code if you check source <body id="cms" class="cms cms-4 cms-about-us"> so small modification of Nemo's code .csm-4 #header {display:none} or .csm-about-us #header {display:none} If you have multiple languages first one is safer I think. 1 Link to comment Share on other sites More sharing options...
Tahsin_85 Posted March 16, 2017 Share Posted March 16, 2017 Hi, you can hide specific moduls (parts of your webpage) in Backend: 1. Costumer -> Groups 2. Choose a Group e.g. Guest 3. You get a list of all Moduls that will be displayed on your page for Guest Link to comment Share on other sites More sharing options...
shobhitverma Posted March 5, 2018 Share Posted March 5, 2018 found a way to exactly display a page without header and footer, perfect to put it in a popup like fancybox. you must add a get variable to the URL to display only the content. content_only=1 so for this case of displaying the cart page only, here is the URL index.php?controller=order&content_only=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