Custom Post Thumbnails


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

Custom Post Thumbnails sizes in Wordpress Functions file


Copy this code and paste it in your HTML
  1. <?php
  2.  
  3. // This feature enables post-thumbnail support for a theme
  4. add_theme_support( 'post-thumbnails' );
  5.  
  6. add_image_size( 'responsive-small', 150, 100, true );
  7. add_image_size( 'responsive-medium', 450, 300, true );
  8. add_image_size( 'responsive-large', 750, 500, true );
  9.  
  10. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.