How to Hide Featured Images on A WordPress Page?

13 minutes read

To hide featured images on a WordPress page without using list items, you can follow these steps:

  1. Open your WordPress dashboard and go to the page where you want to hide the featured image.
  2. Click on "Pages" in the left-hand menu and select the desired page.
  3. In the page editor screen, locate the "Featured Image" panel on the right-hand side.
  4. Click on the "Remove featured image" link under the featured image preview.
  5. The featured image will be removed, and you won't see the image or its placeholder on the page.
  6. Update or publish the page to save the changes made.


By following these steps, you can easily hide the featured image from a WordPress page without using any list items.

Best WordPress Books of April 2024

1
WordPress: The Missing Manual: The Book That Should Have Been in the Box

Rating is 5 out of 5

WordPress: The Missing Manual: The Book That Should Have Been in the Box

2
WordPress All-in-One For Dummies (For Dummies (Computer/Tech))

Rating is 4.9 out of 5

WordPress All-in-One For Dummies (For Dummies (Computer/Tech))

3
WordPress Explained: Your Step-by-Step Guide to WordPress (2020 Edition)

Rating is 4.7 out of 5

WordPress Explained: Your Step-by-Step Guide to WordPress (2020 Edition)

4
Professional WordPress: Design and Development

Rating is 4.5 out of 5

Professional WordPress: Design and Development

5
WordPress Plugin Development Cookbook: Create powerful plugins to extend the world's most popular CMS, 2nd Edition

Rating is 4.4 out of 5

WordPress Plugin Development Cookbook: Create powerful plugins to extend the world's most popular CMS, 2nd Edition

6
WordPress 5 Complete: Build beautiful and feature-rich websites from scratch, 7th Edition

Rating is 4.3 out of 5

WordPress 5 Complete: Build beautiful and feature-rich websites from scratch, 7th Edition

7
Building Web Apps with WordPress: WordPress as an Application Framework

Rating is 4.2 out of 5

Building Web Apps with WordPress: WordPress as an Application Framework

8
WordPress for Beginners 2020: A Visual Step-by-Step Guide to Mastering WordPress (Webmaster Series)

Rating is 4 out of 5

WordPress for Beginners 2020: A Visual Step-by-Step Guide to Mastering WordPress (Webmaster Series)


How to remove featured images from displaying in WordPress RSS feed?

To remove featured images from displaying in the WordPress RSS feed, you can use the following steps:

  1. Login to your WordPress dashboard.
  2. Go to the "Appearance" section and click on "Editor" to access the theme editor.
  3. In the right-hand side, locate and click on "functions.php" to open the file for editing.
  4. Scroll to the very end of the functions.php file and paste the following code:
1
2
3
4
5
6
7
8
9
function remove_featured_image_rss($content) {
    global $post;
    if (has_post_thumbnail($post->ID)) {
        $content = preg_replace('/<\s*<img.*?>/i', '', $content, 1);
    }
    return $content;
}
add_filter('the_excerpt_rss', 'remove_featured_image_rss');
add_filter('the_content_feed', 'remove_featured_image_rss');


  1. Save the changes made to the functions.php file.


Now, the featured images will be removed from your WordPress RSS feed.


How to hide featured images on search results pages in WordPress?

To hide featured images on search results pages in WordPress, you can use custom CSS or a plugin. Here are two methods you can use:


Method 1: Custom CSS

  1. Log in to your WordPress admin dashboard.
  2. Go to Appearance > Customize.
  3. In the customizer, click on "Additional CSS" (or similar, depending on your theme).
  4. Add the following CSS code to the textbox:
1
2
3
.search .post-thumbnail {
   display: none;
}


  1. Click on "Publish" to save the changes.


Method 2: Using a Plugin (Advanced Custom Fields) Note: This method assumes you have the Advanced Custom Fields (ACF) plugin installed and activated.

  1. Install and activate the Advanced Custom Fields (ACF) plugin.
  2. Go to Custom Fields > Add New.
  3. Create a new field group and set the location rule to "Search Form is equal to Search".
  4. Add a new Field of type "Image" or "Post Object".
  5. Under the "Appearance" settings, enable "No return value" and set the "Hidden" option to "Yes".
  6. Publish the field group.
  7. Test out the search functionality on your site's search result pages, and you should see that the featured images are hidden.


Remember to test any changes you make on a staging or development site before implementing them on a live site.


What is the recommended plugin to hide featured images in WordPress?

One recommended plugin to hide featured images in WordPress is "Hide Featured Image".

Best WordPress Hosting Providers in 2024

1
Vultr

Rating is 5 out of 5

Vultr

  • Ultra-fast Intel Core
  • High Performance and Cheap Cloud Dedicated Servers
  • 1 click install Wordpress
  • Low Price and High Quality
2
Digital Ocean

Rating is 4.9 out of 5

Digital Ocean

  • Active Digital Community
  • Simple Control Panel
  • Starting from 5$ per month


How to hide featured images in WordPress using a child theme?

To hide featured images in WordPress using a child theme, you can follow these steps:

  1. Create a Child Theme: Create a child theme if you haven't already. This allows you to make modifications without affecting the original parent theme.
  2. Locate the PHP file: Identify the PHP file that displays the featured image. Usually, this file is called single.php or content-single.php. However, it may vary depending on your theme. You can use a code editor or navigate to the theme editor within your WordPress dashboard to find the file.
  3. Copy the PHP file to the Child Theme: Copy the PHP file from the parent theme directory to the corresponding location under your child theme directory. To maintain the file structure, ensure the copied file is placed in the same subdirectory in the child theme as it is in the parent theme.
  4. Open the Copied PHP file: Open the copied PHP file in a code editor.
  5. Edit the PHP file: Within the PHP file, locate the code responsible for displaying the featured image. This code typically includes a function like the_post_thumbnail or get_the_post_thumbnail. You can search for function names or thumbnail using your code editor's search functionality.
  6. Comment out or remove the code: To hide the featured image, you can comment out the relevant code by adding /* at the beginning and */ at the end of the code. Alternatively, you can remove the code completely if you don't intend to use the featured image functionality at all. Make sure to save the changes after editing.
  7. Activate the Child Theme: Go to your WordPress admin dashboard, navigate to Appearance -> Themes. Activate the newly created child theme.


By following these steps, you should be able to hide the featured images on your WordPress site by using a child theme.


How to disable featured images for a specific custom post type in WordPress?

To disable featured images for a specific custom post type in WordPress, you can use the remove_post_type_support() function in your theme's functions.php file or in a custom plugin. Here's how you can do it:

  1. Open your theme's functions.php file or create a custom plugin.
  2. Add the following code to disable the featured image support for your custom post type. Replace 'your_custom_post_type' with the actual name of your custom post type.
1
2
3
4
function disable_featured_images() {
    remove_post_type_support( 'your_custom_post_type', 'thumbnail' );
}
add_action( 'admin_init', 'disable_featured_images' );


  1. Save the file or plugin.
  2. Login to your WordPress admin panel.
  3. Navigate to the post type in which you want to disable featured images.
  4. Click on the "Add New" button to create a new post of the custom post type.
  5. Scroll down to the bottom of the screen and make sure the "Featured Image" meta box is not visible. If it is still visible, you may need to refresh the page or clear your cache.


With this code, the "Featured Image" meta box will be removed for the specified custom post type, preventing users from adding or selecting featured images for posts of that type.


How to hide featured images on a specific page template in WordPress?

To hide featured images on a specific page template in WordPress, you can follow these steps:

  1. Identify the page template file that you want to modify. This template file should be located within the theme folder on your WordPress installation.
  2. Open the template file using a text editor or an integrated development environment (IDE).
  3. Look for the code that displays the featured image. This code might look something like this: This code is usually found within the loop that displays the post content.
  4. Surround the code that displays the featured image with an if statement that checks if the current page template matches the one you want to hide the image on. For example: Replace 'template-name.php' with the actual name of the template file you want to target.
  5. Save the changes to the template file and upload it to your WordPress installation, replacing the existing file.


Now, the featured image should only be displayed on pages that use a different template, and it will be hidden on the specific page template you specified.


What is the code to hide featured images in a specific WordPress theme?

To hide featured images in a specific WordPress theme, you can use custom CSS code.

  1. Go to Appearance > Customize in your WordPress dashboard.
  2. Look for the "Additional CSS" option.
  3. Paste the following code into the editor:
1
2
3
4
5
6
7
8
9
/* Hide featured images on single posts */
.single-post .wp-post-image {
    display: none;
}

/* Hide featured images on blog index/archive pages */
.archive .wp-post-image {
    display: none;
}


  1. Click on the "Publish" button to save your changes.


Note that this code assumes that the theme you are using applies the wp-post-image CSS class to the featured image elements. If your theme uses a different class or structure for the featured images, you will need to modify the CSS code accordingly.

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

Related Posts:

WordPress featured thumbnails allow you to add a featured image to your posts. If your WordPress theme has this functionality, then you may set a featured thumbnail to your post by using the Featured Image meta box by clicking the Set Featured image link and u...
To randomize the featured collection in Shopify, you can utilize the collection API to fetch all collections from your store. Once you have retrieved the collections, you can then shuffle the array using a random sorting function. After shuffling the collectio...
To delete or hide a div class in WordPress, you can use CSS code to target the specific class and either delete it or hide it from view. This can be done by accessing the CSS stylesheet of your WordPress theme and adding the necessary code to target the div cl...