-
AuthorPosts
-
January 15, 2019 at 12:26 am #1053883
Looked through and tried a bunch of ways to accomplish this on the support board. None worked. Want to change the Square size to 250 250.
This is what I placed in the child theme functions.php:
<?php
/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*/// Add Custom sizes for Products
function avia_change_image_size_array() {
global $avia_config;
$avia_config[‘imgSize’][‘widget’] = array(‘width’=>36, ‘height’=>36); // small preview pics eg sidebar news
$avia_config[‘imgSize’][‘square’] = array(‘width’=>250, ‘height’=>250); // 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’][‘gallery’] = array(‘width’=>845, ‘height’=>684 ); // 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’=>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
}
add_action( ‘init’, ‘avia_change_image_size_array’);January 15, 2019 at 12:29 am #1053887link to page. Want to increase the size of the four images in the row; Event Calendar, Racing etc.
January 15, 2019 at 10:22 am #1054041Hi kcloud3,
Try to add this code in functions.php:
add_filter( 'avf_modify_thumb_size', 'enfold_customization_modify_thumb_size', 10, 1 ); function enfold_customization_modify_thumb_size( $size ) { $size['square'] = array('width'=>250, 'height'=>250); return $size; }
then you’ll need to re-add the image for it to trigger this function.
However if you have already lots of images uploaded, you should use this plugin: https://wordpress.org/plugins/regenerate-thumbnails/ to regenerate images.Best regards,
NikkoJanuary 15, 2019 at 1:40 pm #1054116Hi Nikko,
Thanks for the code. When I try to add it the Child Theme functions.php I get a syntax error. What am I doing wrong? Images are in Private’s Link area.- This reply was modified 5 years, 11 months ago by kcloud3.
January 17, 2019 at 5:38 am #1054865Hi,
Did you copy the code from your email? The arrow and equal symbols are converted to their html entity codes. You should copy it directly from the forum.
Best regards,
IsmaelJanuary 17, 2019 at 5:00 pm #1055068That was it! Thanks so much for your help.
January 17, 2019 at 6:29 pm #1055111Hi kcloud3,
Glad that we could help. :)
Let us know if you need further assistance or if we can close this thread.Best regards,
NikkoJanuary 17, 2019 at 6:45 pm #1055118Close it.
January 18, 2019 at 4:56 pm #1055506Hi kcloud3,
Glad to hear that :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Resize Image Sizes’ is closed to new replies.