• Resolved damarpaskalis

    (@damarpaskalis)


    I install Minimal Lite theme recently and I like how it looks.
    However, there seems to be one problem for me.

    The links within post/pages are in the same color as other texts unless they are hovered.
    I’d like to change the link colors and/or add some decorations to distinct them.

    However, when I put some CSS code, it changed the looks of every single links in my site.

    Need some help now.

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please disable your right-click blocker if you’d like help with this.

    Hi, damarpaskalis, I noticed that some CSS was not properly written, and that involves two # signs being used with the link colors as seen with this code from your site:

    a {
       color: ##fd5b66;
    }
    a:visited {
       color: ##fd5b66;
    }

    Assuming that you had written these CSS rules, I would remove one of the pound signs from each of these property-value pairs, so instead it should be:

    a {
       color: #fd5b66;
    }
    a:visited {
       color: #fd5b66;
    }

    Since these rules don’t have particularly specific selectors, they will apply to every link on your website so I would advise that you learn more about selectors with CSS: https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors

    Or you could use a plug-in to ensure that the CSS code is properly formed in the future such as https://www.ads-software.com/plugins/so-css/

    Thread Starter damarpaskalis

    (@damarpaskalis)

    Hi @sterndata sorry for the inconvenience. I have changed the setting as soon as I got your message.

    Hi @plantprogrammer, thank you for the help.
    I wasn’t aware of that until you mentioned the issue here.

    I fixed that and changed the CSS into something like this

    .single-post .entry-content  a{
    color:#fd5b66;
    }

    and it works the way I want it to be.

    Thanks for the help, man!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot change the Link within Post/Pages’ is closed to new replies.