This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Mini Post List widget image size

  • Creator
    Topic
  • #6478
    odyn
    Participant

    I’m trying to change the size of thumbnails in mini post list widget but don’t know where to start. I have registred a new size (plakat_thumbnail), rebuilt the thumbnails, located this should probably be done somewhere in themeblvd_get_mini_post_list function but now I’m stuck. Whatever I do, I get 130×130 square (instead of my 106×150 thumb).

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #6488
    Jason Bobich
    Keymaster

    It might be easier to just filter the image size already used since I don’t think the framework uses these sizes for anything outside of mini post grids/lists. The mini post lists and mini post grids use these image sizes depending on what you select from the settings of the widget or shortcode:

    1. square_small
    2. square_smaller
    3. square_smallest

    Here’s all about changing image sizes from your Child theme’s functions.php.

    http://dev.themeblvd.com/tutorial/crop-sizes/

    http://dev.themeblvd.com/tutorial/crop-sizes/#customize

    ======

    In the next update to Jump Start (v1.0.1, framework v2.2.1), I’ve added filters on the image sizes used so you’ll be able to do something like this:

    // Register image size
    add_image_size( 'my_new_size', 220, 180 );
    
    // Filter in the new size
    function my_mini_post_thumb_size( $size ){
    	return 'my_new_size';
    }
    add_filter( 'themeblvd_mini_post_grid_thumb_size', 'my_mini_post_thumb_size' );
    add_filter( 'themeblvd_mini_post_list_thumb_size', 'my_mini_post_thumb_size' );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.