Custom thum size in wp


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



Copy this code and paste it in your HTML
  1. /*dodavanje post thumbova*/
  2.  
  3. if ( function_exists( 'add_theme_support' ) ) {
  4. add_theme_support( 'post-thumbnails' );
  5. }
  6.  
  7. /*dodavanje custom size-a za featured image*/
  8. add_image_size( 'pocetna-thumb', 120, 400, true );
  9. add_image_size( 'thumbnail', 140, 300, true );
  10. add_image_size( 'medium', 300, 400, true );
  11. add_image_size( 'large', 1024, 1024);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.