Hello
I want to change the Class of a div when specific category is used.
So i can display the category like this:
<?php if($params->get('tmpl_core.item_categories') == 1 && $this->section->categories):?>
<div class="cob-cat-th"><?php echo implode(', ', $item->categories);?></div>
<?php endif;?>
But now i want to change the div class if the Category Changes, for example, if the Category is "News" then i want to have a div class "cat-news"
How can i mange this?
Regards
Halsfeger
Hello
I want to change the Class of a div when specific category is used.
So i can display the category like this:
But now i want to change the div class if the Category Changes, for example, if the Category is "News" then i want to have a div class "cat-news"
How can i mange this?
Regards
Halsfeger