• Hi,

    I wanted to hide the tags that were appearing at the bottom of each post. I’ve managed to do this by putting this code into my child theme:

    .tag-links {
    display: none;
    }

    It worked for every post but the first one.
    Any idea how to hide the tags on my first post?
    Here’s the link:
    https://anniehearts.com/blog/

    Any help is appreciated!
    Thanks,
    Annie

Viewing 15 replies - 1 through 15 (of 16 total)
  • Ayman

    (@aymanalzarrad)

    Try adding the span selector before the class.
    It should look like this:

    span.tag-links {
        display:none;
    }

    Thread Starter annie hearts

    (@annie-hearts)

    Hi Ayman,
    Thanks for your suggestion!
    Unfortunately, the tags are still appeairng. ??

    Ayman

    (@aymanalzarrad)

    Strange… I already tried that and it works for me
    Could add the code I gave and than try clearing the browser cache?

    Thread Starter annie hearts

    (@annie-hearts)

    I tried it but it still doesn’t work…

    Thanks for trying!

    That CSS should work. I can’t see it in your child theme’s stylesheet.

    Thread Starter annie hearts

    (@annie-hearts)

    Hi esmi,

    That’s weird…I put it in public_html/blog/wp-content/themes/twentyeleven-child
    It’s appearing on my editor and in my cPanel.

    It seems to be working now.

    Thread Starter annie hearts

    (@annie-hearts)

    Yes, it’s working now!
    HURRAY!!

    Thanks guys!!

    Thread Starter annie hearts

    (@annie-hearts)

    Oh dear, actually it didn’t work. I accidentally scrolled down to the post below it.

    I cleared my cache and relaunched safari. I wondered if it was a browser thing, but it’s appearing in chrome too.

    Still not seeing the CSS in your child theme…

    Thread Starter annie hearts

    (@annie-hearts)

    It should be in style.css, right?

    In your child theme, yes.

    Thread Starter annie hearts

    (@annie-hearts)

    This is too weird. I just opened the file where the coding is, and cut and paste the title, which said:

    /home/anniehea/public_html/blog/wp-content/themes/twentyeleven-child/style.css

    I’ve saved and closed the document in both Appearance > Editor and in cPanel.

    Thanks for your patience! I really don’t know what’s going on…

    Try removing the previous line:

    .wpb_widgetised_column.wpb_content_element .wpb_wrapper img { width:auto !important; }
    Thread Starter annie hearts

    (@annie-hearts)

    HURRAY AGAIN! For real this time!

    Those b*tchin widgets were screwing up my code!

    THANKS ESMI. YOU ROCK!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘hiding the tags – it's only appearing in first post’ is closed to new replies.