Home › Forums › Solo, Grid Responsive Multipurpose Magazine › Customize image sizes
Tagged: customization, image sizes
This topic contains 0 replies, has 1 voice, and was last updated by mimo 3 years ago.
Hi, just to share this trick i have send to a client.
To make the customization, i understand you need a custom image size for thumbnails. To do this go to functions.php in theme folder and add this code at the end of file
//Add images sizes
if ( function_exists( 'add_image_size' ) ) :
add_image_size( 'mm-yourname', 600, 600,true);
I can explain you this: The 600 are width and height of your images, you need to make it the same to be squares. you can use 400,400,…500,500,…and etc
Then go to file html/content/slidertemplate.php and change line 12 to this:
the_post_thumbnail('mm-yourname', array('data-original' => $urlnewswall,'class' => 'rt-image'));
Save both files and upload your new featured images for every post.
If in the future you decide to change this size, you will need to use the Plugin Regenerate Thumbnails to regenerate all images sizes, this code only resizes new uploaded images.
You must be logged in and have valid license to reply to this topic.