WordPress.org

Ready to get started?Download WordPress

Forums

Single Cat php CSS (6 posts)

  1. Mark (podz)
    Support Maven
    Posted 9 years ago #

    http://wordpress.org/support/10/12028
    Possibly close maybe ?

  2. TechGnome
    Moderator
    Posted 9 years ago #

    Try this... where the importURL is for the style.....
    importURL( <?php if ($cat = 15) { echo "path to style 15.css";} else { echo "style to other posts.css"; } ?>
    That's just off the top of my head. I *think* that will work.
    TG

  3. Root
    Member
    Posted 9 years ago #

    TechGnome tx that looks cool but where is the @ ?

  4. TechGnome
    Moderator
    Posted 9 years ago #

    :blank stare:
    HUH? What @? I see no @.
    Oh. I told you it was off the top of my head.... If you *must* have 100% correct code.....
    @import url( <?php if ($cat = 15) { echo "path to style 15.css";} else { echo "style to other posts.css"; } ?>
    :) Import url is two words, not one. ;P
    TG

  5. Root
    Member
    Posted 9 years ago #

    Looks cool . You know I am pretty thick. With php I cant afford to take any chances :)

  6. Root
    Member
    Posted 9 years ago #

    Thanks for the help guys but I managed it without the php. Separate CSS for my single cat front page . Yay :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.