Hidden feature images, titles, Rockfield theme

  • Unknown's avatar

    Hi there!

    I’m using the following CSS with the Rockfield theme so that post titles and images don’t appear in the single post/page view:


    .entry-title {
    display: none;
    }

    .hentry .wp-post-image {
    display: none;
    }

    This works well on the single post view. The trouble is, these seem to remove the elements from the “blog post widget” view as well. When using the “post carousel” widget, the feature image shows up just fine, but the post title doesn’t.

    I’d like to keep these elements hidden from the single post view ONLY, and have them display in the widgets.

    The blog post widget I’m trying to use is embedded at the top of this post:
    https://latelythesun.com/2020/10/24/conversation/

    The carousel widget (less of an issue) is embedded at the bottom of this post:

    Equinox by Eileen Haley

    Thanks heaps for any help!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Alright – reporting back. The following CSS fixed the issue with the blog post widget, and the titles/feature image is still hidden in the single page view:


    .entry-header .entry-title {
    display: none;
    }

    .type-post .post-thumbnail {
    display: none;
    }

    Unfortunately it also completely broke the carousel widget (no title, no image). But at that point I decided I was better off without it anyway so I just removed it, and I think the end result is simpler, cleaner, and better. Unfortunately that doesn’t help anyone who really needs that carousel, but it might help otherwise.

  • Hi there,

    Rather than wait for a reply here, you may wish to take advantage of the priority support that is included in your WordPress.com Premium Plan by asking here next time you need a hand: https://wordpress.com/help/contact

    It can help if we can look over your CSS in a live chat session so if you need a hand with this still, feel free to start a chat with us M-F 24hrs.

    Hope this helps!

  • Unknown's avatar

    Hi Jerry,

    I did try the live chat help first, but it sort of ended in a shrug. Hence why I reached out more broadly. (It turns out I know someone who knows about CSS. But I don’t want to lean on them too hard, so I’ll probably go through in the same order again if there’s a next time.)

  • The topic ‘Hidden feature images, titles, Rockfield theme’ is closed to new replies.