How to enable Featured Image for WordPress Pages

Written by Sarmad Gardezi February 23, 2018

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' ) );

.

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.



Featured Posts

Free Image Hosting

Host your Images Online for free & use them on Website Blogs and Social Media.

HOST NOW Featured





           
           

Subscribe to my Email Newsletter

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 26,908 other subscribers
           
       
Custom Support

I build bespoke solutions that use the capabilities and the features of Google Apps for automating business processes and driving business productivity.

or send me a message via Facebook Messenger