Enabling featured image on a post


/ Published in: PHP
Save to your folder(s)

To enablefeatured image on a post, just open your theme’s functions.php file, paste in the code below, and voila!


Copy this code and paste it in your HTML
  1. add_theme_support( 'post-thumbnails' );
  2. set_post_thumbnail_size( 115, 115 )

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.