Forums

[resolved] can't get multi headers to work (3 posts)

  1. dan.tee
    Member
    Posted 1 year ago #

    Hello!

    I'm trying to have my photo website gallery template to use a different header from the rest of the site. Reason: the gallery page needs a list of child pages and I can't get an answer to my previous post about how to have a child list appear only on one page.

    So I thought I'd make a gallery header instead, that has the second line of links. You can view the site as it stands here For clarification of what I'm trying to achieve, look at the non-WP site here and click on the gallery link.

    I've tried adding the following to the gallery template (the gallery page has its own template):<?php get_header('gallery.php'); ?> and there's a file called header-gallery.php in the theme's folder. I've even gone so far as to add some custom text to the gallery header to be 100% certain that it isn't being loaded and it 100% isn't.

    What am I doing wrong?

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

  3. dan.tee
    Member
    Posted 1 year ago #

    Thank you so much. I can't believe I hadn't spotted that myself - I was even reading the codex page that you linked to!

    Cheers!

Topic Closed

This topic has been closed to new replies.

About this Topic