Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • schlogo Friend
    #720501

    Hello

    When an item is featured, a catItemIsFeatured class is added using this code :

    <div class="catItemView group<?php echo ucfirst($this->item->itemGroup); ?><?php echo ($this->item->featured) ? ' catItemIsFeatured' : ''; ?>

    i d also like to add a class when an article is not featured . I tried to if around but something is not working. Would someone has an idea to make this work ? tks

    Saguaros Moderator
    #720962

    Hi

    You can simply change to this:


    <div class="catItemView group<?php echo ucfirst($this->item->itemGroup); ?><?php echo ($this->item->featured) ? ' catItemIsFeatured' : ' notFeatured'; ?>

    notFeatured is class name and you can change as you wish.

    Saguaros Moderator
    #753468

    Hi

    You can simply change to this:


    <div class="catItemView group<?php echo ucfirst($this->item->itemGroup); ?><?php echo ($this->item->featured) ? ' catItemIsFeatured' : ' notFeatured'; ?>

    notFeatured is class name and you can change as you wish.

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  Saguaros 9 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum