Close

Account

Documentation

Forum

Menu

Reply To: Add class to html for masonry blocks according to their post tag/category

Post count: 13
Lukáš Ildža
October 16, 2014 at 9:21 pm #5379

I figured this for myself too

I replaced the 5th row in template/blogpost/masonry.php:
<article class=”article-masonry-box”>
CHANGE TO THIS:
<article class=”article-masonry-box <?php $category = get_the_category(); echo $category[0]->slug;?>”>

I recommend you to add this to your nex update.. 😉