[Support request] Underline Links only in Text

Home Forums Support [Support request] Underline Links only in Text

Home Forums Support Underline Links only in Text

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1965095
    Mira

    Hello,

    I would like to underline links only in text, but not in buttons, navigation, header, footer or images.

    At the moment I tried this code:

    #main .entry-content a:not(.pp-button) {
    text-decoration: underline;
    }

    #main .entry-content a:hover:not(.pp-button) {
    text-decoration: none;
    }

    But there are still underlined links in Buttons or images.

    Thank you!

    #1965196
    David
    Staff
    Customer Support

    Hi there,

    try this CSS:

    .entry-content p > a:not(:hover) {
        text-decoration: underline;
    }

    It will apply to only links that are inside a paragraph, and only when its not hovered.

    #1966017
    Mira

    Hi there,

    thank you very much. I tried the code and it is working for the buttons.

    The text links on my images (e.g. my homepage header is covered with a text) are still underlined. Do you know how I can change this?

    #1966025
    David
    Staff
    Customer Support
    #1966037
    Mira

    That works perfectly, thank you 🙂

    #1966038
    David
    Staff
    Customer Support

    Glad to be of help

    #1993254
    Dan

    Hi there,

    Is not work for me. I would like to underline links only in text (content), not in buttons, navigation, header, footer or images. I have setup Customize > General: Underline links > Not on hover with Cache dynamic CSS. Clear the cache too.

    Can you help me, please?

    #1993317
    David
    Staff
    Customer Support

    Hi there,

    can you raise a new topic, where you can share a link to your site so i can see whats required?

    #1993405
    Dan

    Hi David,

    Here the link site: https://evanjou.ca/dialogue/

    #1993713
    David
    Staff
    Customer Support

    The site is using Elementor – and its applying its own underline styles. Not sure if Elementor has a style setting for that. If not then try this CSS:

    .elementor p a {
        text-decoration: underline;
    }
    #1994234
    Dan

    Hi David,

    It’s work as well. Thank you for your help!

    #1994337
    David
    Staff
    Customer Support

    You’re welcome

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