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.
Hi letobbe!
You can edit your page and choose not to display header on your pages – http://i.imgur.com/Fr6UNvg.png
Regards,
Yigit
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?
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