• I am trying to display different header for 1 page on my website and i can’t achieve it using perfect code.

    What i have done is (everything in child theme):
    I have created a seperate header-homepage.php file and i call it using an if statement in page.php template.

    My code in page.php

    if(is_page('homepage')) { get_header('homepage'); } else { get_header(); }

    I don’t understand why this wouldn’t work. Thank you for your help.

    • This topic was modified 3 years, 2 months ago by theotheo.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Issue with templates and headers’ is closed to new replies.