-
On this website, all post titles and also all links to the categories on the homepage and on the blog page are underlined. This does not look good, how can I change this? In the articles, however, the links should still be underlined.
-
Alvind
Hi there,
Try adding this CSS:
body:is(.home, .archive, .blog, .page) a { text-decoration: none; }
It should remove all the link underlines on the site except for the links inside post articles.
-
Hello Alvind
that works so far, but it would be nice, if the nav under the post (category and next, previous post) also have no underline.
-
Hi there,
I would approach it from the other way around.
1. remove the CSS from Alvind and any other CSS that its setting styles for the link underlines.
2. in Customizer > General, set the Underline Links to Never.
3. add the following CSS to add custom underlines:.single .entry-content a { text-decoration: underline; }
This will add underlines to only links within your single post content.
- You must be logged in to reply to this topic.