Hi, I followed the instructions in your documentation, but when I add the code (below) in my functions.php child theme, nothing changes
$avia_config = array(‘width’=>500, ‘height’=>300 ); // images for portfolio entries (2,3 column)
Please help..thanks!
Hey,
You need to regenerate the thumbnails using this plugin: http://wordpress.org/plugins/regenerate-thumbnails/
Regards,
Ismael
Hmm..that didn’t work. This is what the entire child functions.php looks like:
<?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.
*/
$avia_config = array(‘width’=>500, ‘height’=>300 ); // images for portfolio entries (2,3 column)
Is there anything missing?
Hey,
Please refer to this link: https://kriesi.at/support/topic/override-the-global-avia_config-within-child-functionsphp
Regards,
Ismael
Still doesn’t work.
When I do change the theme’s functions.php, I noticed that it only changes the width and then keeps the image proportional…rather than cropping. Can I change it so that it crops the image?
Hi htarrant,
After each change of the function you must regenerate your thumbnails to have the changes reflected on your actual images. For cropping, you need to set crop to true. For example:
$avia_config['imgSize']['extra_large'] = array('width'=>1500, 'height'=>1500 , 'crop' => true); // images for fullscreen slider
Regards,
Devin