Tagged: links, underlined
-
AuthorPosts
-
April 8, 2023 at 2:58 pm #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,
AlwinApril 8, 2023 at 8:22 pm #1403908Hey 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,
MikeApril 9, 2023 at 4:42 pm #1403954Here 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.April 9, 2023 at 5:56 pm #1403963Hi,
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,
MikeApril 9, 2023 at 7:13 pm #1403975Hello 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,
AlwinApril 9, 2023 at 7:23 pm #1403979Hi,
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,
MikeApril 9, 2023 at 7:26 pm #1403981Hello Mike,
Yes we can close this topic.
Thank you very much for the great support :)
AlwinApril 9, 2023 at 8:45 pm #1403983Hi,
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 -
AuthorPosts
- The topic ‘Suddenly all links are underlined?’ is closed to new replies.