[Support request] How to have H2 that links to a content table with different text colour

Home Forums Support [Support request] How to have H2 that links to a content table with different text colour

Home Forums Support How to have H2 that links to a content table with different text colour

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2507781
    Graeme

    Hi,

    I’ve written a couple of blogs and I’ve set the linked words/content table links to the article in an orange colour but it also makes the H2 text orange in my article. I want the text to be black but I can’t seem to work out how to change the text on these headers only and keep the link text colour orange.

    I’ve left a couple of examples in the private information section.

    #2507921
    Leo
    Staff
    Customer Support

    Hi there,

    Have you considered using the Headline block from GB since you are already using GB in the site?
    https://docs.generateblocks.com/article/headline-overview/

    Then you can set whatever color you want:
    https://docs.generateblocks.com/article/headline-overview/#colors

    Let me know 🙂

    #2508996
    Graeme

    They are H2’s already. I’ve tried setting the color of the text for the H2 to black but they still remain orange?

    #2511518
    Graeme

    Is there any other advise?

    To confirm the above I’m already using the headline block and when I go to change the colour to black for the H2’s they just remain orange? I think this is because I have a table of contents that link to the headers?

    #2511595
    Ying
    Staff
    Customer Support

    Try this CSS:

    .entry-content h2 :is(a,a:hover,a:active) {
        color: black;
        text-decoration: none;
    }
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.