Site logo

[Support request] CSS Customization of GeneratePress Theme Tags

Home Forums Support [Support request] CSS Customization of GeneratePress Theme Tags

Home Forums Support CSS Customization of GeneratePress Theme Tags

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #2528047
    Jericho

    Hello!

    I am currently using the GeneratePress theme for my website and I am in need of your assistance in customizing the default design of the tags. I would like to achieve the same design of the tags that can be seen on Medium.com.

    Can you help me with some CSS code? I would greatly appreciate any help you can provide.

    Screenshot: https://prnt.sc/otbdM3lBCur3

    Thank you for your time and support!

    #2528064
    Fernando
    Customer Support

    Hi Jericho,

    You can try adding this Snippet:

    add_filter( 'generate_term_separator', function() {
        return ' ';
    } );

    Adding PHP: https://docs.generatepress.com/article/adding-php/#code-snippets

    Then, add this CSS:

    footer.entry-meta .tags-links a[rel="tag"] {
        background-color: rgba(242, 242, 242, 1);
        padding: 2px 8px;
        border-radius: 100px;
        color: rgba(117, 117, 117, 1);
        text-decoration: none;
    }

    Alternatively, you can use a Block Element – Post Meta Template for that.

    Example:
    https://share.getcloudapp.com/WnuZjoJ7
    https://share.getcloudapp.com/nOu10GkK

    #2528397
    Jericho

    Thanks, Fernando!

    #2530840
    Fernando
    Customer Support

    You’re welcome, Jericho!

    #2537690
    jmarc

    Hello there

    I would like the same thing for the category entry-meta please. What should I replace ?

    Thank you
    MArc

    #2537693
    jmarc

    Sorry to have posted this ! I found the solution…
    Thank you

    #2539176
    Fernando
    Customer Support

    Glad you found the solution!

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