• i’ve got my logo on the first page, but my other pages are used as galleries and i don’t want the main header to show. is there a way to hide the header on the additional pages while keeping it visible on the main page? i’m using the “constructor” theme to design my own theme.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Unless you provide a link to your site, no one will be able to offer much in the way of specific help.

    Thread Starter stargirl1

    (@stargirl1)

    i don’t have anything to show yet for my website as the galleries are not built yet, it’s all still my old html. therefore i didn’t post my website as it would only be more confusing. this is more of a “theoretical” “how can i” question.

    maybe this will make it clearer as to what i want:

    page 1) static splash page (with logo on top)
    page 2) gallery (no logo on top)
    page 3) gallery (no logo on top)
    page 4) gallery (no logo on top)

    basically i’m just wondering if one page can have a header while the others don’t.

    Make a copy of your page.php file, name it gallery.php (or whatever) and put it in the theme folder. Do the same with header.php and rename it something like header2.php.

    In gallery.php, replace the get_header.php with get_header2.php.

    Open up header2 and edit out anything that you don’t want. If you want everything gone, just delete everything after the body tag.

    Now when you create one of your gallery pages, look on the sidebar and select gallery.php as the template. (Note: the option to pick a template won’t be there until you actually put in a non-default template in the theme folder)

    I think that should do it.

    Edit: You could also use Jocken’s script below instead of picking the template inside the admin panel. Just replace //show logo with get_header and //don’t show logo with get_header 2.

    <?php
    if ( is_home() ) {
    // show your logo
    } else {
    // don’t show a logo
    }
    ?>

    Thread Starter stargirl1

    (@stargirl1)

    ehm, where exactly do i place the code?

    Thread Starter stargirl1

    (@stargirl1)

    where do i put this code?
    i’ve tried in the functions, header, page, and index files but can’t get it to work.
    but i don’t know exactly where i need to place it.

    Since I think the logo should appear in the header. There it should also be. header.php that is. NOT inside the <head></head> tag but in the <body></body>.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘can i hide the header on additional pages?’ is closed to new replies.