WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Simple PHP/CSS Question ? (3 posts)

  1. pufftenticle
    Member
    Posted 6 years ago #

    in my main index template, there is a CSS class call inside a php snippet that says this:

    <div id="content" <?php if (is_home()) { ?>class="home"<?php } ?>>

    i want to do that same thing with about 11 or 12 different category templates, so that i get this:

    <div id="content" <?php if (is_CATEGORY1()) { ?>class="CATEGORY1STYLE"<?php } ?>>

    i have all of the category templates spread out, but can't for the life of me figure out what to put in there. help ?

  2. moshu
    Member
    Posted 6 years ago #

  3. pufftenticle
    Member
    Posted 6 years ago #

    cool ! thanks

Topic Closed

This topic has been closed to new replies.

About this Topic