Skip to:
Content
Pages
Categories
Search
Top
Bottom

Custom Header for Forum


  • ginuwinejewel
    Member

    @ginuwinejewel

    I have two separate headers for my customized skeleton theme, header.php and header-page.php. Is there a way I can call header-page.php on my forums page for bbpress? I tried using:

    if ( is_front_page() ) :

    get_header();

    elseif ( is_bbpress() ) :

    get_header(‘page’);

    else :

    get_header(‘page’);

    in my index.php page, but it didn’t work. Is there another way to do this?

    Thanks.

Viewing 1 replies (of 1 total)

  • Lynq
    Participant

    @lynq

    These will do the majority of your forum, in fact, I think they might do all of them? Check it out and see what you get.

    if (get_post_type() == 'forum')
    if (get_post_type() == 'topic')
    if (get_post_type() == 'reply')

    if((get_post_type() == 'forum') or (get_post_type() == 'topic') or (get_post_type() == 'reply')) {
    get_header(‘page’);
    } else {
    get_header();
    }

    Give it a try.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.