Support » Theme: Highwind » Remove Featured Image

  • Every time I set the featured image to my pages. The image shows up at the very top of the page. I want to keep my featured image but I don’t want the image to show up on my page. Can someone help me? Thanks in advance. I have Highwind as my theme.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author James Koster

    (@jameskoster)

    If you want to keep the featured image but not have it appear, what do you want it to do?

    I want to keep it for posting social media thumbnails when the link is shared.. But I do not want it on the top of my pages/post.

    Thanks for your response and any help you can provide me ahead of time.

    I’m having the same problem. I want to keep the featured image functionality, but not display it.

    Moderator Jan Dembowski

    (@jdembowski)

    Brute Squad and Volunteer Moderator

    This happens to me with my themes too. I don’t want to display the featured image but don’t want to remove the functionality either.

    Yes, I’m particular. 😉

    Try using a custom CSS plugin or create and activate a child theme of Highwind and use this CSS.

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

    That usually works for me.

    You can change little code in your page.php or in single.php.

    If you want to remove it from post, you need to go for single.php.
    If you want to remove it from page, you need to go for page.php.

    When you open this files, just below the loop section, you will see something like “the_post_thumbnail()”. Just comment it.

    That may be work for you.

    Since Highwind adds the post_thumbnail from an action hook, for Highwind here is a way to remove the featured image, from your functions.php file:

    add_action ('highwind_content_entry_top', 'remove_highwind_featured_image');
    
    function remove_highwind_featured_image(){
    
     remove_action( 'highwind_content_entry_top', 'highwind_featured_image', 20 ); 
    
    }

    You could also add conditional statements into the function if you want to use the featured image only on some pages. Or… hook into some other location if you would like to have the featured image in a different place.

    I love the Highwind theme for how many action hooks it has built it!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove Featured Image’ is closed to new replies.