Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #431871

    I have another menu plugin I am using and therefore I would like to remove the header on all pages. Is there a code I can put in function.php that removes the header on all pages? I know I can do this with css but I would rather just remove it from the loop.

    #432064

    Hi letobbe!

    You can edit your page and choose not to display header on your pages – http://i.imgur.com/Fr6UNvg.png

    Regards,
    Yigit

    #432066

    That is not a sitewide solution? That is only for each page and it won’t affect custom post types and blog posts. I would rather see a sitewide solution. Is this possible?

    #432075

    Hey!

    You can go to Appearance > Editor and open Header.php file and find following code

    	<?php 
    	if(!$blank) //blank templates dont display header nor footer
    	{ 
    		 //fetch the template file that holds the main menu, located in includes/helper-menu-main.php
             get_template_part( 'includes/helper', 'main-menu' );
    
    	} ?>

    and comment it out as following

    <!--	<?php 
    //	if(!$blank) //blank templates dont display header nor footer
    //	{ 
    		 //fetch the template file that holds the main menu, located in includes/helper-menu-main.php
      //       get_template_part( 'includes/helper', 'main-menu' );
    
    //	} ?>-->
    

    Regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.