Forums

[resolved] Another div style in one Category (3 posts)

  1. malefactor
    Member
    Posted 10 months ago #

    Hello everyone. I have one problem and I can't solve it.
    I'm trying to use another div style for one category. So before the loop I tried something like:

    <?php if (single_cat_title()=="Demotivatori"){include("demotivatori.php");} ?>

    where in demotivatori.php is the same loop but with other div class.

    If I change the class stlye in index.php then it's working perfect but problem is that I want this style only in exactly Category.

    Help pls..

  2. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

    Try:

    <?php if is_category("Demotivatori" ) )include("demotivatori.php");?>

  3. malefactor
    Member
    Posted 10 months ago #

    Done!

    I just create new php file category-X.php where X is my categori ID.
    And it works!

    esmi thank you anyway. ;)

Reply

You must log in to post.

About this Topic