Support » Plugin: Conditionally display featured image on singular posts and pages » title spacing off on landing page

  • Resolved Heimhenge


    Left a great review and love how this plugin works. Lets me include thumbnails with my post notification plugin w/o messing up my posts with an unnecessary featured image. Only one curious problem I just discovered …

    On my landing page the post title gets shifted to the top of the content area after this plugin removes the featured image. All other posts/pages look fine. You can see what I’m describing at:

    I could probably correct this with CSS but hope there’s an easier route. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author cyrillbolliger


    Hi Heimhenge

    Thank you very much for your review!

    The problem on your page seems to be the “has-post-thumbnail” class. Since the problem doesn’t occure with any of my tested themes I unfortunately can’t reproduce the problem. So could you please send me (bolliger[AT] your theme, so i can make further investigation?


    Thanks Cyrill. I sent you the requested info, then just awhile ago discovered the CSS I need to correct the issue. The problem was that when your plugin removes the featured image I don’t want on my posts, the post title shifted up to the top of the content area. It didn’t happen on older posts, just the most recent post which I use as my landing page.

    I only need the thumbnails for teasers in the emailed new post notifications and don’t need them on my actual posts.

    So the first CSS I tried was:

    .entry-header { padding-top: 28px; }

    but that shifted the titles down on ALL posts and pages, even though the landing page was now good. So then I tried:

    .home .site-main .entry-header { padding-top: 28px; }

    and that did exactly what I needed. Maybe this will help some of your other users. Thanks again for the assistance. You may mark this as resolved (at least for me).

    Plugin Author cyrillbolliger


    Hi Heimhenge

    I’m glad you managed to fix this issue even though I couldn’t reproduce the problem…

    No worries. The tricky part was finding the right CSS selectors to affect ONLY the landing/home page and not affect any other posts or pages. So I thought I’d post the solution here. I also added some tags

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘title spacing off on landing page’ is closed to new replies.