Changing the related posts head

  • Unknown's avatar

    Is there any way to change the related posts heading using CSS? While I love the feature, the posts shown often are not related and it’s confusing for the head to say “Related.” I’d prefer something like “You might also like” or just “Also” or “More.”

    Also, for consistency, the head should include a colon and a full-width gray rule to match the Share and Like sections above it.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar
    div.jp-relatedposts {
    border-top: 1px solid rgba(0, 0, 0, 0.13);
    }
    div.jp-relatedposts .jp-relatedposts-headline em {
    font-size: 0;
    color: transparent;
    }
    div.jp-relatedposts .jp-relatedposts-headline em:before {
    border-top: 0 none;
    margin-bottom: 0;
    }
    div.jp-relatedposts .jp-relatedposts-headline em:after {
    content: "YOUR ALTERNATIVE HERE:";
    font-size: 9pt;
    color: #000000;
    }

    If I were you I would also add a bottom border, to separate the section from the previous/next nav links.

  • Unknown's avatar

    That looks great. Thanks! I added the bottom border as you suggested. That’s a lot of horizontal lines down there, but I can’t think of a better way to present all that stuff.

    I appreciate your taking the time to indulge all my nitpicking!

  • Unknown's avatar

    You’re welcome, and I’m all for this kind of “nitpicking”: the original styling was very bad.
    If you don’t like all those lines, you could remove all of them and add a border and/or a discreet background color to the whole share+like+related section.

  • Unknown's avatar

    Or simply keep only the line above Share and the line below Related.

  • Unknown's avatar

    Or add a border and a bg color to Related only.

  • Unknown's avatar

    LOL! I’ll probably try them all sooner or later (if I can figure out the code). There’s really no way to impose any consistency on these three disparate elements.

    Anyway, thanks again. This is a big improvement over the default.

  • Unknown's avatar

    Hello,
    I would love to get rid of the “related posts” features all together. How can I do that? If it’s not possible, can I control which posts are selected to be “related” since they usually aren’t?
    Thank you.

  • Unknown's avatar

    Hi there, I see only one site associated with your username, and it is using Eventbrite Single. If you are talking about a different site, can you give us the URL of that site please?

  • Unknown's avatar

    You can turn off the related posts feature at Settings > Reading in your dashboard under “Related Posts.”

  • Unknown's avatar

    Thank you, thank you! Perfect!

  • Unknown's avatar
  • The topic ‘Changing the related posts head’ is closed to new replies.