• Resolved DickRaney

    (@dickraney)


    I have added this code to my child theme functions file and it removes the featured image from the single post pages, but not from the blog page.

    function remove_storefront_actions() {
    	remove_action( 'storefront_post_content_before', 'storefront_post_thumbnail', 10 );
    }
    add_action( 'init', 'remove_storefront_actions' );
    

    I’m currently just hiding the featured image with CSS, but want to know how I can do the job correctly and actually remove the image code?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there!

    Thanks for your message.

    The code you’ve shared should work on single posts as well as the blog page set as “Posts page” under Appearance > Customize > Homepage Settings. I tried that code and it removed the featured image on single blog posts as well as my blog page.

    It may not work if a third-party child theme or plugin is overwriting the default blog loop.

    I’d also suggest clearing the cache and seeing if that works. ??

    Thread Starter DickRaney

    (@dickraney)

    Child theme was the problem. Thanks

    Hey @dickraney !

    Child theme was the problem. Thanks

    Glad you could identify and resolve the issue ?? Also, thank you for sharing this here!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to remove featured image from blog posts loop’ is closed to new replies.