[Support request] hyperlink colour in the post

Home Forums Support [Support request] hyperlink colour in the post

Home Forums Support hyperlink colour in the post

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1480896
    Sanu Kumar

    Can I change the hyperlink colour inside the post – would like to change into gradient colour this
    background: linear-gradient(150deg, rgba(193,10,255,1) 0%, rgba(240,2,255,1) 100%);

    #1481083
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Try this:

    .inside-article a {
        background: linear-gradient(150deg, rgba(193,10,255,1) 0%, rgba(240,2,255,1) 100%);
    }
    #1481371
    Sanu Kumar

    I am trying this CSS to change the link colour but doesn’t change

    body:not(.blog):not(.archieve) .inside-article > *:not(.rank-math-breadcrumb) a {
        font-weight: bold;
    	 color: linear-gradient(150deg, rgba(193,10,255,1) 0%, rgba(240,2,255,1) 100%);
    }
    #1481375
    Leo
    Staff
    Customer Support

    Can you try Tom’s code first? If that doesn’t work, can you link us to the page in question with the code added?

    #1481381
    Sanu Kumar

    I tried Tom’s code but it changed the link background but I want to change the font colour and I also try to replace background to color but not worked.

    #1481697
    David
    Staff
    Customer Support

    Hi there,

    The code Tom provided can only be applied to a background color – are you wanting a gradient color for your text ?

    #1481708
    Sanu Kumar

    yes

    #1481853
    David
    Staff
    Customer Support

    Not sure about this or the browser compatibility but try this:

    body:not(.blog):not(.archive) .inside-article>*:not(.rank-math-breadcrumb) a {
        font-weight: bold;
        background: -webkit-linear-gradient(150deg, rgba(193,10,255,1) 0%, rgba(240,2,255,1) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    #1492707
    Sanu Kumar

    not worked.

    I think it should work because if we can change the hyperlink background colour then it is also possible to change the text colour of hyperlink.

    I am not a techy guy, just my thoughts.

    #1492866
    David
    Staff
    Customer Support

    Can you share a link with the CSS added ?

    #1492962
    Sanu Kumar

    Added the code.

    Here is one of my post link
    https://www.masteryblogging.com/siteground-hosting-review/

    #1493007
    David
    Staff
    Customer Support

    It does work – try adding the CSS here to the top of your CSS.

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