• Hi. I want to remove the tags links from all pages of my blog (https://www.yobyot.com).

    Inspection of the CSS in a browser says this styled in a span called tags-links.

    I’ve tried overriding the span in the Edit CSS functionality provided by Jetpack and when that didn’t work I just created a child theme in which I’ve tried to remove completely the tag-links logic in the child’s style.css, as shown here (I commented out the only reference to tags-links that I could find:

    .single .byline,
            .full-size-link,
            body:not(.search-results).group-blog .byline,
            body:not(.search-results) .entry-format,
            body:not(.search-results) .cat-links,
    /*      body:not(.search-results) .tags-links, */
            body:not(.search-results) article:not(.sticky) .posted-on,
            body:not(.search-results) article:not(.type-page) .comments-link,
            body:not(.search-results) article:not(.type-page) .entry-footer .edit-link {
                    display: block;
                    margin-bottom: 0.5384615385em;
            }

    So far, I’ve had no luck hacking at this so I’d appreciate any input on what I am missing.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Xelan54,

    If you’re looking to just remove the tags-links class you can do this simply with a CSS override.

    .tags-links {
      display: none !important;
    }

    That way the theme won’t reset to it’s original value.

    Hope this helps!

    Thread Starter xelan54

    (@xelan54)

    Thanks, nlmosler.

    I’d tried this and it doesn’t work when used in either the styles.css of the child theme or in the edited CSS provided by Jetpack.

    I don’t want to modify the base theme but I cannot understand why it’s so impossible to find a way to override a span in the theme.

    I’m beginning to wonder if there’s a bug in twentysixteen, given that it’s newly released.

    Xelan54,

    I was able to do this on a fresh install of twentysixteen on my server with that command. You may have something else that is making itself a higher priority. If you email me at [email protected] we can discuss diving deeper into your site to fix this issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Overriding spans in twentysixteen’ is closed to new replies.