Custom Post Divider Based on Category

Community Forums Forums Design Tips and Tricks Custom Post Divider Based on Category

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  cdils 1 year, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #98217


    Hi – I’m looking to change the divider at the end of each post based on the category that the post is tagged with (5 total) – any help would be greatly appreciated!

    Using the Genesis theme.



    Are you talking about the solid line after each post?

    That’s coming from this in the stylesheet:

    .entry-footer .entry-meta {
        border-top: 1px solid #CCCBCC;
        margin: 1rem -2rem;
        padding: 1rem 2rem 0.8rem;

    If you want to change it based on category, use a body class for that category (i.e. look at the <body> tag on a category page and get the name of a class you can add to your css). For example, if you wanted a different divider on the Bake category, add some CSS styles to this:

    .category-bake .entry-footer .entry-meta { //whatever }


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.

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

You must be logged in to reply to this topic.