Site logo

[Resolved] How to show yellow underline on Links?

Home Forums Support [Resolved] How to show yellow underline on Links?

Home Forums Support How to show yellow underline on Links?

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1740998
    Sibi Paul

    Hi…

    I have seen popular News websites are Highlighting their Internal links with a thick yellow underline…

    That helps them to reduce the bounce rate…

    people are attracted to click on those links…

    How can we do that in GP?

    #1741006
    Elvin
    Staff
    Customer Support

    Hi there,

    Can you specify which links do you want to apply this?

    If it’s the content links, you can try adding this CSS:

    .entry-content a {
        text-decoration: underline solid yellow;
    }

    Here’s how to add CSS – https://docs.generatepress.com/article/adding-css/

    #1742247
    Sibi Paul

    Hi…

    That code worked…

    But, I need this line a little bit thicker… and a little space between the TEXT and Line…

    Then only it’ll appear to stand alone and people can read the text properly…

    Thanks.

    #1742256
    Ying
    Staff
    Customer Support

    Hi Sibi,

    Try this CSS instead, feel free to adjust the numbers:

    .entry-content a {
        border-bottom: 3px solid yellow;
        padding-bottom: 2px;
    }
    #1742264
    Sibi Paul

    That’s Awesome…

    Can I add any Animation on Hover…

    Animation on this Underline while hoven…

    I’ve seen that on some websites before…

    even if it’s not possible… I’m very much happy with the current settings…

    Can I change the breadcrumbs font size? ( create new ticket or same )

    #1742269
    Sibi Paul

    When I hover on Links, it turns Bold…

    is that Possible?

    #1742300
    Ying
    Staff
    Customer Support

    With animation that’s another story, you could give this CSS a try, but it won’t work if the link occupies more than 1 row.

    .entry-content a {
        position: relative;
    }
    .entry-content a:hover:before {
        right: 0;
        transition: all 0.5s ease;
    }
    .entry-content a:before {
        content: "";
        position: absolute;
        bottom: -5px;
        left: 0;
        right: 100%;
        background-color: yellow;
        height: 2px;
    }

    And yes please, open a new topic for non-related questions, thanks 🙂

    #1742323
    Sibi Paul

    That worked…

    Thanks.

    #1742340
    Ying
    Staff
    Customer Support

    Glad to hear that 🙂

    #1836030
    Sibi Paul

    This code adds Underline everywhere…

    .entry-content a {
        border-bottom: 3px solid yellow;
        padding-bottom: 2px;
    }

    What if, I want to avoid Underline from the Home page, archive posts, and meta?

    I only want to show Underline in the single posts.

    Not even in the pages.

    Kindly help.

    Thanks.

    #1836068
    David
    Staff
    Customer Support

    Change this selector:

    .entry-content a

    to:

    .single-post .entry-content p a

    That will select only links with a paragraph within the content of the single post.

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