Viewing 2 replies - 1 through 2 (of 2 total)
  • Yes I also want to do something similar, I want to create a new thumbnail function with 350px width and 138px height for featured DJ’S. Someone should help me on this.

    I’m not sure what you mean by “featured DJ’s image” but if you mean the featured image on the show pages…

    1) in your functions.php register a new thumbnail size :

    add_action( 'after_setup_theme', 'custom_image_crops' );
    function custom_image_crops() {
    add_image_size( 'my_custom_image_crop', 350, 138, true );
    }

    2) in single-show.php find :

    <?php if(has_post_thumbnail()) {
    the_post_thumbnail('medium');
    } ?>

    3) replace with :

    <?php if(has_post_thumbnail()) {
    the_post_thumbnail('my_custom_image_crop');
    } ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Full Image Instead Of Thumnail’ is closed to new replies.