Tagged: child theme, functions.php
-
AuthorPosts
-
August 17, 2017 at 10:53 am #840327
Hi there,
we made a change of image sizes for the blog posts (markd in strong):
$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’][‘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’=>442); // 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[‘imgSize’] = apply_filters(‘avf_modify_thumb_size’, $avia_config[‘imgSize’]);We added this to functions.php of the child theme, but it does not overwrite the functions.php of Enfold. Of course, with the update this was lost. It is still in the child theme and does not apply. As soon as I change it in Enfold, it works.
Can you please give me a suggestion, how I can put this change of the image size to my child theme?
Thanks in advance.
KatiAugust 19, 2017 at 6:07 pm #841338Hey Kati,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look? At this point, I don’t have a link to your other threads.
Best regards,
VictoriaAugust 21, 2017 at 8:00 am #841898Sure!
Thanks for your help!
KatiAugust 21, 2017 at 2:53 pm #842029Hi Kati,
I am not seeing the login link, could you please add it as well?
Best regards,
VictoriaAugust 21, 2017 at 3:00 pm #842033Sure!
August 24, 2017 at 11:42 am #843412Hi,
Please use the following plugin instead.
// https://wordpress.org/plugins/simple-image-sizes/
If you really want to override it bin the child theme, use the add_image_size function and use the same thumbnail name.
// https://developer.wordpress.org/reference/functions/add_image_size/
Best regards,
IsmaelAugust 24, 2017 at 12:11 pm #843436Hi Ismael,
thank you very much for your help!
Best regards,
KatrinAugust 24, 2017 at 1:47 pm #843483 -
AuthorPosts
- The topic ‘Change image / thumbnail sizes in child theme does not overwrite Enfold’ is closed to new replies.