Support » Themes and Templates » Display HTML based on category

  • I’m trying to change a piece of HTML on my index.php based on category.
    Basically, I have 5 categories: body, mind, work, art, thoughts. And I want an specific div inside my loop to change according to post.

    If the post is in the body category, the HTML I want it to display is:
    <div class="listposts_editoria_body"></div>

    I’ve researched in the foruns, but I’m not a developer, and I’m not making progress.

    Can anybody help me? Thanks. 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display HTML based on category’ is closed to new replies.