[Resolved] Position category tags above H1 headline?

Home Forums Support [Resolved] Position category tags above H1 headline?

Home Forums Support Position category tags above H1 headline?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #792051
    Michael

    Howdy!

    In blog posts, I’d like to move the category label to above the H1 headline (from its default position below the body text).

    Please note that I’d like *only* the category text to display above the H1, not the little category folder icon.

    Example of a post with category labels above the headline: https://firstround.com/review/what-sweetgreen-can-teach-startups-about-scaling-intimacy/

    I’ve searched the support forums, but couldn’t quite find the necessary PHP (and CSS for styling). Help? πŸ™‚

    #792168
    Leo
    Staff
    Customer Support

    Hi there,

    Can you give this a shot?
    https://generatepress.com/forums/topic/display-post-categories-above-title/#post-645410

    Let me know πŸ™‚

    #792171
    Michael

    Ah-ha! Apparently I didn’t search the forums thoroughly enough. πŸ™‚ I’ll try that out and let you know. Thanks!

    #792187
    Michael

    Success! A couple of follow-up questions:

    1. How can I remove the little folder icon that’s displayed next to the category label?
    2. Is there CSS I can use to change the style of JUST the category label without changing the style of other “meta links” (like the date and author)?

    Thanks again for the help.

    #792225
    Leo
    Staff
    Customer Support

    1.

    .cat-links:before {
        display: none;
    }

    2.

    .cat-links a {
        font-size: 20px;
        color: #000;
    }
    #792290
    Michael

    Spot on. Thanks again!

    #792449
    Leo
    Staff
    Customer Support

    Glad I could help πŸ™‚

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.