How to enable Featured Image for WordPress Pages

Sarmad Gardezi

By default wordpress has feature image option for wordpress posts. Some themes support many other option which vary with the theme. Featured image help the wordpress theme to display image as a header image or post main image or thumbnail image.

When you develop a custom wordpress theme then you need a feature image option foe your theme so you can use the code given below to enable a featured image option for wordpress pages.

Featured Image for WordPress Pages

To enable the featured image in wordpress page follow the steps given below

  • Login to your wordpress website.
  • Goto Appearance  then Editor
  • From the right side select Functions (function.php) file
  • Place the php function given below
  • Save the changes and go to the page and you will see Featured Image Option.
 add_theme_support( 'post-thumbnails', array( 'post', 'page' ) );
enable Featured Image for WordPress Pages
.

Remember: You need to add CPT(Custom Post types) in the function code to display featured image on them because using custom function you need to update it as per your desire. The function will not work with every theme until you place the php function that will fetch the featured image on dresire location when you upload the image.

More great articles

Social Media Apps Chat Widget for WordPress Website

My last article was about Facebook Chat Widget that can be used in any website to add Facebook live chat button…

Read Story

How to Boost Post SEO using Yoast Meta Description

When you’re working with a self-hosted WordPress site, the Yoast SEO plugin is one of the most valuable tools you…

Read Story

How to Monetize WordPress.com blog and Earn Money

Are you blogging on WordPress.com platform and wondering how you can make money from it? If yes, this is a…

Read Story
Arrow-up