Creating different headers for specific categories

  • Unknown's avatar

    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: (visible only to logged in users)

  • Unknown's avatar

    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’);

    }

    ?>

  • Unknown's avatar

    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: https://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/

  • Unknown's avatar
  • Unknown's avatar

    You’re welcome and best wishes. :)

  • Unknown's avatar
  • The topic ‘Creating different headers for specific categories’ is closed to new replies.