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 5 months ago.

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

    kschiffel
    Member

    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.

    Thanks!

    http://www.bakelovegive.com
    #101480

    cdils
    Participant
    Post count: 421

    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 }

    Cheers,
    Carrie


    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 Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

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

You must be logged in to reply to this topic.