WordPress.org

Forums

Highwind
Remove Featured Image (7 posts)

  1. psdesignz.com
    Member
    Posted 1 year ago #

    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.

  2. jameskoster
    Member
    Theme Author

    Posted 1 year ago #

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

  3. psdesignz.com
    Member
    Posted 1 year ago #

    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.

  4. Jacob deCastro
    Member
    Posted 1 year ago #

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

  5. 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.

  6. imshubham
    Member
    Posted 1 year ago #

    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.

  7. AJD
    Member
    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic