Tagged: ,

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

    I am building another Enfold site at the moment. I created links in my text and links in my widgets, and as usual (on my other Enfold sites) these links are not underlined, which is how I like it.

    Now the new site I am buidling suddenly shows all links underlined, while I did not change any setting or added custom code.

    I found this code on the Enfold forum and it works to remove the underlines in the text, but it does not work for the widget and socket links:

    .main_color a, .alternate_color a {
        text-decoration: none !important ;
    }

    – How can I remove the links underline in my widgets and socket?
    – How can this be an issue suddenly, I never had my links underlined before with my other Enfold sites?

    Thanks for the help!

    Best Wishes,
    Alwin

    #1403908

    Hey Alwin,
    It is hard to say what is causing this without examining the site, which also makes it hard to offer some css to correct it, please include a link to your site so we can offer a solution.

    Best regards,
    Mike

    #1403954

    Here is a link to my site (see private content).
    I have removed the code to remove the underlines in the text so you can see the issue from start. The underlined links are in the widgets, in the socket and in the text on the Contact page.

    #1403963

    Hi,
    Thank you for the link to your site the underline is from css from the block editor:

    a:where(:not(.wp-element-button)) {
        text-decoration: underline;
    }

    to remove try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    #main a:where(:not(.wp-element-button)) {
        text-decoration: none;
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1403975

    Hello Mike,

    Thank you for your fast reply :)

    I used your code and it solved the issue!

    I just wonder now why I did not have the same issue before on my other Enfold websites? I am not using block editor on any of my sites, and the code from the block editor you mention was not edited by me?

    Thanks,
    Alwin

    #1403979

    Hi,
    Glad this helped, I’m not sure why, I can’t reproduce it on my test site, but I recognize the code is from the block editor.
    Unless there is anything else we can assist with on this issue, shall we close this then?

    Best regards,
    Mike

    #1403981

    Hello Mike,

    Yes we can close this topic.

    Thank you very much for the great support :)
    Alwin

    #1403983

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.
    Happy Easter!

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Suddenly all links are underlined?’ is closed to new replies.