Site logo

[Support request] Underline links

Home Forums Support [Support request] Underline links

Home Forums Support Underline links

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #2105412
    Renske

    Hi there,

    How do I underline my links? (just the links in the main text, not the links in button blocks, navigation etc). Thanks!

    #2105416
    Renske

    This is the effect I’m looking for: a little space between text and line and the line should disappear when I hoover over it.

    Loom video: https://www.loom.com/share/3473e40cf2a846e8b4cb46d98e9dd4f3

    #2105417
    David
    Staff
    Customer Support

    Glad to hear that

    #2105424
    Renske

    Sorry, I justed edited my response above. I’m actually looking for a different effect 🙂

    #2105484
    David
    Staff
    Customer Support

    OK – so disable the underline option in the Customizer > General and add this CSS:

    .entry-content p a:hover {
        text-decoration: underline;
    }
    #2106918
    Renske

    Is there also a way to add a little more space between the link and the line? (see the example I provided above, gillandrews.com)

    #2107245
    David
    Staff
    Customer Support

    Try this CSS instead:

    .entry-content p a {
        border-bottom: 1px solid transparent;
    }
    
    .entry-content p a:hover {
        border-bottom: 1px solid currentcolor;
    }
    #2108462
    Renske

    Thanks David, this is working!

    I would also like the same CSS to the links in the footer. How do I do this? Thanks 🙂

    #2108469
    David
    Staff
    Customer Support

    Can i see the site your adding this to ?

    #2108484
    Renske

    Sure, see private section.

    #2108527
    David
    Staff
    Customer Support

    Update the CSS to this:

    .entry-content p a,
    .site-footer a {
        border-bottom: 1px solid transparent;
    }
    
    .entry-content p a:hover,
    .site-footer a:hover {
        border-bottom: 1px solid currentcolor;
    }
Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.