plugin to connect a theme to category or author? (4 posts)

  1. nikao
    Posted 10 years ago #

    On my blog I will have around 10 different authors. For each author I will create a seperate category. What I want is to make a seperate template (or at least a header) for each author/category.

    Does anyone know if there's already a plugin that does this?
    I just want to be sure before i start programming myself....

  2. Kafkaesqui

    Posted 10 years ago #

  3. sadish
    Posted 10 years ago #

    You can try this.

    within the header.php, you could say,

    <div id="header" <?php if(is_category()) { echo 'class="';the_category(' ');echo '"'} ?>

    that will add a class="apple" or class="orange", in case "apple" and "orange" or the author names.

    then in the style.css, you go ahead and add
    .apple {
    .orange {

    or something you want.

    This is just a rough idea. you need to evolve on this.
    Hope it helps.


  4. nikao
    Posted 10 years ago #

    thx.. i will look into this some more....

Topic Closed

This topic has been closed to new replies.

About this Topic