Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: how to prevent “featured image” being displayed at top of blog post?

Discussion in 'Misc WordPress Requests' started by Steve Stern, Oct 15, 2017.

  1. Steve Stern

    Guest

    Reply To: how to prevent “featured image” being displayed at top of blog post?, by Steve Stern

    There are two ways to do this: (1) make a child theme and edit single.php in the child to remove the call to the_post_thumbnail() or (2) hide the featured image with CSS. The latter is easier, but less efficient.

    .single-blog-image {
    display: none;
    }

    To add CSS:

    • If you are using WordPress 4.7 or later, use the “Additional CSS” option in the customizer.
    • If your theme has a custom CSS option, use that to add the CSS shown above.

    Learn to use the Chrome Developer Tools to help you see and test changes to your CSS.

    Reply To: how to prevent “featured image” being displayed at top of blog post?
     
    #1

Share This Page

Web Hosting