Viewing 6 replies - 1 through 6 (of 6 total)
  • There are a couple ways to go about this. The simpler method is to use a Custom CSS plugin and assign display-none to that element, since your site already have had Jetpack installed, so just activate the Custom CSS module and use it. The code below will do just that.

    .single .entry-thumbnail { display: none;  }

    The other way is to copy the content-single.php from parent theme which is boardwalk theme, then delete line #8 to line #12
    https://themes.trac.www.ads-software.com/browser/boardwalk/1.0.5/content-single.php

    Once we have the modified version of content-single.php, drop it in child theme’s folder, which is the theme being used now (cubic theme).

    It depends, if you plan to do something that might need to edit php template later on, go with the last method.

    Thread Starter annglorieus

    (@annglorieus)

    Thanks paulwpxp for that very quick reply, but that changes the displaying of ALL featured images, not? It’s only for this new post that I want to change it. Sorry about being such a noob.

    Yes, that CSS will affect all featured images in single post and not on the blog home page.

    To limit that to only 1 post (or certain few posts) we can make use of post class (standard WP feature) and selectively assign the proper CSS selector.

    We can also make use of Tag or Category as condition, so we can limit that only to posts tagged with simple for example.

    Info on post class
    https://codex.www.ads-software.com/Function_Reference/post_class

    Example code

    .single .tag-why .entry-thumbnail { display: none;  }

    The code above will only effect any post that tagged with why.

    Thread Starter annglorieus

    (@annglorieus)

    Thanks again. Have solved it for the time being in a very inelegant way but will look into it tonight for future posts!

    Moderator Kathryn Presner

    (@zoonini)

    You can apply Paul’s code to just a single post if you want, by replacing .single with the class for the the post ID. Here’s an example for this page specifically:
    https://www.iamglorious.be/en-dat-geldt-ook-voor-jou/

    .postid-78 .entry-thumbnail {
      display: none;
    }

    Replace the post ID with the one for your specific post. You’ll find the post ID in the browser’s address bar when you’re editing the post, or look at the body tag in the browser source.

    Let me know how it goes.

    Thread Starter annglorieus

    (@annglorieus)

    Perfect! Thank you so much, both of you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘image on blog index but not as featured header’ is closed to new replies.