• Resolved fullfatdesigns

    (@fullfatdesigns)


    I’m revisiting a site I worked on a few years ago and adding a new landing page. I’ve created the page template and want to load in a different header (a simpler one).

    I’ve duplicated the header and saved it as header-landing.php. Then in my landing page template I’ve change the get header call to;

    get_header('header-landing');

    I’ve created the page in admin and selected the landing page template, but it loads in the main header.

    Looking around at threads online, this should work, so I can’t work out what I’m doing wrong. I’ve disabled all plugins as a test (same result), there are no caching plugins installed and I’ve cleared by browser cache.

    Any help greatly received.
    Thanks
    Wayne

Viewing 3 replies - 1 through 3 (of 3 total)
  • lisa

    (@contentiskey)

    if your file is named header-landing.php
    try something like this: get_header('landing');

    (I used this approach recently to conditionally load a special header on for a specific page ID.)

    • This reply was modified 2 years ago by lisa.
    Thread Starter fullfatdesigns

    (@fullfatdesigns)

    Thanks Lisa

    I will try that in the morning.

    Thread Starter fullfatdesigns

    (@fullfatdesigns)

    Yep, that was it. I didn’t realise you didn’t include the full filename.

    Thanks again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Page not using the correct header’ is closed to new replies.