• This is a weird question and I think I know the answer but I’m going to ask because I’m not sure and would like my thinking confirmed.

    I want to create a home page on a website that is a full page background photo, a Welcome text on the left and a flyout menu on the right.

    Subsequent pages will have headers and footers, with a cut down version of the front page photo in the background of the header.

    Does the front page need to have a header or should I just leave it out of the template for that page? I’m thinking it does need to have a header for things like GA code and loading js scripts etc?

    Is my thinking correct?

Viewing 2 replies - 1 through 2 (of 2 total)
  • using header and footer we save our a lot of time. But these are not required.

    If you don’t need then remove <?php get_header(); ?> and <?php get_footer(); ?> from your template!

    Be aware that if you remove those lines, wp_head() likely won’t be called, which means that your theme’s stylesheet won’t be loaded and also any plugins that write JS or stylesheets to the <head> ... </head> section won’t work correctly either.

    Your best bet might be to hide the elements you don’t want to show on the front page with some page-specific CSS. What theme are you using? Can you post a link to your site?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘are headers and footers required?’ is closed to new replies.