[Resolved] Confused adding some css

Home Forums Support [Resolved] Confused adding some css

Home Forums Support Confused adding some css

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2334875
    Mathieu

    Hi team,

    Once again i need your help, sorry about that ๐Ÿ™‚

    I’m trying for a while to add css to this framed content : https://prnt.sc/NgPeFGjHNzHQ
    To me, it looks like this is linked to this class <p class=”gb-headline gb-headline-7293551e gb-headline-text dynamic-term-class”> but maybe i’m wrong.

    I’d like to display white text on pink background for example.
    How am i supposed to do so ?

    Thanks in advance !

    #2335082
    David
    Staff
    Customer Support

    Hi there,

    can you share a link to the page where i can see that ?

    #2335090
    Mathieu

    Hi David,

    Sure !
    Here you go

    #2335098
    David
    Staff
    Customer Support

    Ok. in Appearance > Elements edit the Element titled: Post Archive Template
    Select Headline block that is displaying the Terms and in the sidebar you can set Spacing > Padding and then change its colors.

    And then you can repeat this for the Element titled: First Post Template

    #2335111
    Mathieu

    It works and is almost perfect but how do I set a background-color for the width of text, not the width of the entire element, using CSS?

    I tried to quote this option : https://prnt.sc/q9M129Mq0VLM
    It looks like good while i’m on editor mode, but once live i’ve got this https://prnt.sc/VRHP4EwdwPYV (i purged CSS)

    #2335117
    David
    Staff
    Customer Support

    An option is to:

    1. delete the Headline Block.
    2. Add a GB Buttons Block , and set its dynamic data to show the List of Terms.

    Now you can style the button and this will be just the width of the term text and padding.

    #2335128
    Mathieu

    This second solution is just perfect ๐Ÿ™‚

    Thanks David for this great support, as always !

    #2335255
    David
    Staff
    Customer Support

    You’re welcome

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