WordPress.org

Ready to get started?Download WordPress

Forums

How to use two different headers on one site? (4 posts)

  1. PGrizz
    Member
    Posted 3 years ago #

    I was wondering if this is possible. I tried copying the header.php file and renamed it headerwide.php, but I'm not sure how to call it. I tried calling get_headerwide(); ?> but that doesn't work and as a result the header breaks and the page doesn't load. How can I call headerwider.php instead of header.php?

  2. vtxyzzy
    Member
    Posted 3 years ago #

    See if the Dynamic Headers plugin will do what you want.

  3. Edward Caissie
    Theme Review Admin
    Posted 3 years ago #

    Using get_header() will call the standard header.php template file; now, if you rename your headerwide.php file to header-wide.php (note the hyphen after 'header') you can call it with get_header( 'wide' )

    See how that works out for you ...

  4. PGrizz
    Member
    Posted 3 years ago #

    appreciate the replies guys, and thanks Edward that worked perfect :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.