• Resolved mkunoff

    (@mkunoff)


    Having some difficulty with custom CSS on the “sticky” post at the top of this page: https://blog.provost.indiana.edu/

    I’m trying to obfuscate the date for this post only.

    Here’s my code:
    p.entry-meta.post-info time.entry-time {display: none}

    I also tried more specificity:
    header.entry-header p.entry-meta.post-info time.entry-time {display: none}

    I even targeted an easier entity like the H1 on that post, but doesn’t seem to be working.

    The current theme is Genesis with a child theme.

    https://wordpress.org/plugins/wp-add-custom-css/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mkunoff

    (@mkunoff)

    Update – it works on the actual post, but not in the loop on the front page… so we’re getting closer.

    Plugin Author Daniele De Santis

    (@danieledesantis)

    Hi,
    I see that now the date has been hidden in your front page, so I guess you’ve managed to find the right css rule.

    Anyway, to apply a rule to your front page, unless it is a static front page, you have to use the main WP Add Custom CSS stylesheet, the one you can edit from the plugin’s settings page.

    To target a specific post in the loop you can use its classes, there is one which include the post ID. For example:

    .post-305 p.entry-meta.post-info time.entry-time {display: none}

    Daniele

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

The topic ‘Custom CSS not being recognized’ is closed to new replies.