no-thumbnail
taylorgrocerycatering Recent Posts Threads Started
10 posts
  • Has collected 1+ items on Envato Market
taylorgrocerycatering says

I’d like to have a page on the website that doesn’t have a header at all. Is this possible?

556 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+3 more
Gareth_Gillman says

With a bit of coding you can, copy the contents of page.php into a new file (will need to do this via ftp in the theme directory (wp-contents/themes/theme-name) and rename it to header-template.php.

Now remove the following:

<?php get_header(); ?>

and replace with:

<?php
/* template name: header-template */
?>

Now go to the pages area in the wp admin, find the page you want to remove the header from and on the right hand side template look for the text template (should be second box down) and in the dropdown select ‘header template’.

Publish the page and voila you’re header won’t show on that page :)

3220 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 more
organicbee says

With a bit of coding you can, copy the contents of page.php into a new file (will need to do this via ftp in the theme directory (wp-contents/themes/theme-name) and rename it to header-template.php.

Now remove the following:

<?php get_header(); ?>

and replace with:

<?php
/* template name: header-template */
?>

Now go to the pages area in the wp admin, find the page you want to remove the header from and on the right hand side template look for the text template (should be second box down) and in the dropdown select ‘header template’.

Publish the page and voila you’re header won’t show on that page :)

I wouldn’t do that. Most likely the header.php is calling things that are required for the theme/plugins to work like wp_head();

no-thumbnail
taylorgrocerycatering Recent Posts Threads Started
10 posts
  • Has collected 1+ items on Envato Market
taylorgrocerycatering says

Ok! I’m a little nervous about the first suggestion… I feel like there’s a step missing. and now a suggestion not to do it.

Any other ideas?

I’ve created a new header for the page I’m working on but the image shows up on the page as well. This looks ridiculous. I really need a good fix for this situation. The entire point to this is that the information on that page sits down too low because of the large header. So removing the header was the first thought. Then I tried creating a new header for that page with an arrow pointing below so people will scroll down. Now that header is in the header and on the page. Can i add a header for a page and have it not show up in the content of the page too?

556 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+3 more
Gareth_Gillman says

I had a brain fart and missed this vital part, you also need to copy header.php and remove everything after </head>

create a new file called new-header.php and add the following to your other template:

<?php get_template_part('new', 'header'); ?>

add that after the template name: part in the other file

so your file should now look like:

<?php

/* template name: header-template */

get_header_template('new-header');

?>
3220 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 more
organicbee says

I had a brain fart and missed this vital part, you also need to copy header.php and remove everything after </head>

create a new file called new-header.php and add the following to your other template:

<?php get_template_part('new', 'header'); ?>

add that after the template name: part in the other file

so your file should now look like:

<?php

/* template name: header-template */

get_header_template('new-header');

?>

that won’t work either unless get_header_template is defined somewhere (its not a WordPress function you meant get_template_part I think)

would be more something like creating a file called header-new.php

//Copy from the header.php top of the file( theres most likely a ton more code then this) 
<!DOCTYPE html>

<head>

<?php wp_head(); ?>
</head>

plus the body tag, the forums are removing it for whatever reason

then in a template file named something like template-coolkids.php

<?php
/* template name: No header */

get_header('new');

?>

//Paste Your page.php file here the excluding get_header();
556 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+3 more
Gareth_Gillman says

was meant to be get_template_part() and not get_header_part()

arghhhh, brain is far quicker than my fingers

by
by
by
by
by
by