Tagged: featured images, Portfolio, size
-
AuthorPosts
-
July 24, 2014 at 9:57 pm #295682
Hey there,
I need to use the size 600×338 for the thumbnails in my portfolio as that keeps the ratio correct for 16:9 videos. I tried to add a video_thumbnail, but then realized that wouldn’t work. Where in the functions.php do I make this edit so the thumbnails in the grid layout will be this correct size?
HERE IS THE CODE I AM WORKING WITH:
##################################################################
# AVIA FRAMEWORK by Kriesi# this include calls a file that automatically includes all
# the files within the folder framework and therefore makes
# all functions and classes available for later userequire_once( ‘framework/avia_framework.php’ );
##################################################################
/*
* Register additional image thumbnail sizes
* Those thumbnails are generated on image upload!
*
* If the size of an array was changed after an image was uploaded you either need to re-upload the image
* or use the thumbnail regeneration plugin: http://wordpress.org/extend/plugins/regenerate-thumbnails/
*/$avia_config[‘imgSize’][‘widget’] = array(‘width’=>36, ‘height’=>36); // small preview pics eg sidebar news
$avia_config[‘imgSize’][‘square’] = array(‘width’=>180, ‘height’=>180); // small image for blogs
$avia_config[‘imgSize’][‘featured’] = array(‘width’=>1500, ‘height’=>430 ); // images for fullsize pages and fullsize slider
$avia_config[‘imgSize’][‘featured_large’] = array(‘width’=>1500, ‘height’=>630 ); // images for fullsize pages and fullsize slider
$avia_config[‘imgSize’][‘extra_large’] = array(‘width’=>1500, ‘height’=>1500 , ‘crop’ => false); // images for fullscrren slider
$avia_config[‘imgSize’][‘portfolio’] = array(‘width’=>495, ‘height’=>400 ); // images for portfolio entries (2,3 column)
$avia_config[‘imgSize’][‘portfolio_small’] = array(‘width’=>260, ‘height’=>185 ); // images for portfolio 4 columns
$avia_config[‘imgSize’][‘video_thumbnail’] = array(‘width’=>600, ‘height’=>338 ); // images for video on demand thumbnails
$avia_config[‘imgSize’][‘gallery’] = array(‘width’=>710, ‘height’=>575 ); // images for portfolio entries (2,3 column)
$avia_config[‘imgSize’][‘magazine’] = array(‘width’=>710, ‘height’=>375 ); // images for magazines
$avia_config[‘imgSize’][‘masonry’] = array(‘width’=>705, ‘height’=>705 , ‘crop’ => false); // images for fullscreen masonry
$avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>710, ‘height’=>270); // big images for blog and page entries
$avia_config[‘imgSize’][‘entry_without_sidebar’]= array(‘width’=>1030, ‘height’=>360 ); // images for fullsize pages and fullsize slider//overwrite blog and fullwidth image on extra large layouts
if(avia_get_option(‘responsive_layout’) == “responsive responsive_large”)
{
$avia_config[‘imgSize’][‘gallery’] = array(‘width’=>845, ‘height’=>684 ); // images for portfolio entries (2,3 column)
$avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>845, ‘height’=>321); // big images for blog and page entries
$avia_config[‘imgSize’][‘entry_without_sidebar’]= array(‘width’=>1210, ‘height’=>423 ); // images for fullsize pages and fullsize slider
}$avia_config[‘selectableImgSize’] = array(
‘square’ => __(‘Square’,’avia_framework’),
‘featured’ => __(‘Featured Thin’,’avia_framework’),
‘featured_large’ => __(‘Featured Large’,’avia_framework’),
‘portfolio’ => __(‘Portfolio’,’avia_framework’),
‘gallery’ => __(‘Gallery’,’avia_framework’),
‘video_thumbnail’ => __(‘Video on Demand’,’avia_framework’),
‘entry_with_sidebar’ => __(‘Entry with Sidebar’,’avia_framework’),
‘entry_without_sidebar’ => __(‘Entry without Sidebar’,’avia_framework’),
‘extra_large’ => __(‘Fullscreen Sections/Sliders’,’avia_framework’),);
avia_backend_add_thumbnail_size($avia_config);
if ( ! isset( $content_width ) ) $content_width = $avia_config[‘imgSize’][‘featured’][‘width’];
HERE IS THE PAGE ON MY SITE:
http://dev.questcommunity.com/watch/
Thanks,
NateJuly 24, 2014 at 10:07 pm #295688This could very easily be 710px wide which seems to fit with the theme better, but I need the height to be different on those entries so the ratio will be 16:9.
Can you please assist on where I need to make these changes that will stay consistent with the theme?
Thanks,
NateJuly 25, 2014 at 1:52 am #295744Hey Nate!
The grid images are 16:9:
Can you post a screenshot/mockup of what would you want to accomplish?
Best regards,
JosueJuly 27, 2014 at 4:00 am #296342I figured this out. Thanks for your help!
Nate
-
AuthorPosts
- The topic ‘Portfolio Thumbnail Size Changed to 600×338’ is closed to new replies.