Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m sure you mean to hide the links so they don’t display on the site: you can’t really completely remove HTML elements with CSS.

    Try the following CSS:

    .tags-links {
        display: none;
    }
    Thread Starter sacconi

    (@sacconi)

    Hi, no, I mean just the links

    If I understand you correctly, you want to keep the tags, but remove the hyperlinks so that they become like normal text and not clickable.

    As mentioned before, you can’t really remove the anchor tags with CSS. But you can use CSS to make the links unclickable, and optionally, change the text color.

    Try the following CSS instead:

    .tags-links a {
        pointer-events: none;
        color: #404040;
    }

    If you truly want to remove the hyperlink from the HTML source, you’ll have to make the change in the appropriate template file in your custom theme.

    Thread Starter sacconi

    (@sacconi)

    it works. Is it possible to put buttons as background for each tag? by css I mean, like in the theme Neve

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘removing links by css’ is closed to new replies.