Eleven40 – How to change the default 'featured image' sizes

Community Forums Forums Design Tips and Tricks Eleven40 – How to change the default 'featured image' sizes

This topic is: resolved

This topic contains 4 replies, has 3 voices, and was last updated by  Jeremi 1 year, 8 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #17337

    MM
    Participant
    Post count: 128

    Hi,

    I’m trying to edit the featured image sizes on different pages in Eleven40 theme

    a) on the homepage (where blogs are shown) 4 post grid system

    and

    b) on another blog roll page (where 5 posts are shown per page) straight down, no grid system

    Thks

     

    #17343

    AC
    Blocked
    Post count: 7712

    Look inside your Functions.php file. You should see this:

    [php]
    /** Add support for Genesis Grid Loop */
    function eleven40_grid_loop_helper() {

    if ( function_exists( ‘genesis_grid_loop’ ) ) {
    genesis_grid_loop( array(
    ‘features’ => 1,
    ‘feature_image_size’ => 0,
    ‘feature_image_class’ => ‘alignleft post-image’,
    ‘feature_content_limit’ => 0,
    ‘grid_image_size’ => ‘grid-thumbnail’,
    ‘grid_image_class’ => ‘alignnone’,
    ‘grid_content_limit’ => 250,
    ‘more’ => __( ‘[Continue reading]‘, ‘genesis’ ),
    ) );
    } else {
    genesis_standard_loop();
    }

    }[/php]

    Add a featrured size where you see zero (0). The grid thumbnail is reading from the code below. Change that as you need it.

    ** Add new image sizes */
    add_image_size( ‘grid-thumbnail’, 270, 100, TRUE );

    You can copy/paste that line to create more sizes.

    #17345

    AC
    Blocked
    Post count: 7712

    Oh, and to resize the featured images on the Blog page, go to Settings > Media and change the size there where it says “Thumbnail Size.” If they don’t re-size, you may have to use the “Regenerate Thumbnails” plugin – http://wordpress.org/extend/plugins/regenerate-thumbnails/.

    #17957

    MM
    Participant
    Post count: 128

    Thanks Anitac.

    #20314

    Jeremi
    Participant
    Post count: 1

    I found the code above in the home.php file not the functions.php file in case anyone is having the same problem…

     

     

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.