Site logo

[Support request] How to change link text color on homepage

Home Forums Support [Support request] How to change link text color on homepage

Home Forums Support How to change link text color on homepage

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2606406
    Jonny

    Hello,

    How can I change the link text color on a specific block design I have on my homepage and also the link color in the footer of my site?

    Currently the link text is Black and I would like to change it to White.

    I don’t want this to affect the link color in my content site-wide, only this specific block that I have created for the destinations under the Heading “Choose Your Destination” There are 8 cover images with text overlay for each continent/country.

    TIA!

    #2606441
    Fernando
    Customer Support

    Hi Jonny,

    Give the Container Block or the Grid Block holding the links a class of change-link-colors.

    Adding Custom Classes: https://wordpress.com/support/wordpress-editor/adding-additional-css-classes-to-blocks/

    Then, add this through Appearance > Customize > Additional CSS:

    .change-link-colors p a{
        color: #fff !important;
    }
    #2606450
    Jonny

    Thanks Fernando, that worked for the Container Block. How can I apply this to the link color for the items in my Footer with out affecting link colours in my content site-wide?

    #2606476
    Fernando
    Customer Support

    The same class should work. Just add it to the Container Block on your Footer.

    #2606490
    Jonny

    OK thanks, that worked!

    Is it also possible to disable the light blue underline class from the footer and also the block container on the home page without affecting the links I have in my content?

    This is the CSS that I have added to display the light blue color on my links:

    p a {
    color: #222222 !important;
    background: linear-gradient(180deg,rgba(255,255,255,0) 65%,#BFE1E1 65%);
    border-bottom: none !important;
    }

    #2606549
    Fernando
    Customer Support

    Try updating the code I provided to this:

    .change-link-colors p a{
        color: #fff !important;
        background: none;
    }
    #2606559
    Jonny

    great that worked, thanks very much Fernando!

    #2606567
    Fernando
    Customer Support

    You’re welcome, Jonny!

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