Need help? Check out our Support site, then


Creating different headers for specific categories

  1. Hey Everyone,
    I've been stumbled for a while now. I'm trying to create two different headers using one wordpress theme. The problem Im having is that specfic categories or post does not follow the correct theme. Instead, it ends up using both headers that I have created which creates a mix of different styles. It's a mess really. I'm thinking that it has something to do with how I'm calling items in my header.php.

    here is site: http://fiusm.sprocklab.com/category/radiatefm/

    any help would be great.

    The blog I need help with is madfabuloso.wordpress.com.

  2. here is the header code:

    <?php

    if ( is_home() || in_category('News') || in_category('Sports') || in_category('Life') || in_category('Opinion') || in_category('Video') || in_category('Featured') || in_category('Uncategorized'))
    {
    echo 'in FIU';

    include(TEMPLATEPATH.'/header-fiusm.php');
    }

    /* localhost */
    if (in_category('23') || in_category('24') || in_category('25') || in_category('26') || in_category('27') || in_category('28') ||in_category('29') || in_category('30')){
    echo 'in radaite radatiearr';

    include(TEMPLATEPATH.'/header-radiate.php');
    }

    else if(
    is_category('radiatefm') ||
    is_category('about-radiate') ||
    is_category('djs') ||
    is_category('music') ||
    is_category('playlists') ||
    is_category('promotions') ||
    is_category('schedule')||
    is_category('staff'))
    {
    include(TEMPLATEPATH.'/header-radiate.php');
    }

    else{
    echo 'fiu';
    include(TEMPLATEPATH.'/header-fiusm.php');

    }

    ?>

  3. You are completely off-base here as you are posting to the wrong forum for your software.  Please read this sticky post at the head of the forum  entry so you are clear about the differences between free blogs from and being free hosted by wordpress.COM and sofware installs from wordpress.ORG for self hosting: http://en.forums.wordpress.com/topic/please-read-me-first-before-posting?replies=1

    The correct forum for you to post to is here > http://wordpress.ORG/support/

  4. thank you

  5. You're welcome and best wishes. :)

  6. nvm. solved

Topic Closed

This topic has been closed to new replies.

About this Topic