Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Links Underline

  • 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.

  • 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.

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