-
AuthorPosts
-
January 31, 2019 at 9:48 pm #1061245
This code was cecommended by @Dude:
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'=>300, 'height'=>300); // small image for blogs //$avia_config['imgSize']['featured'] = array('width'=>1500, 'height'=>1001 ); // 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'=>330 ); // images for portfolio entries (2,3 column) //$avia_config['imgSize']['portfolio_small'] = array('width'=>260, 'height'=>173 ); // images for portfolio 4 columns //$avia_config['imgSize']['gallery'] = array('width'=>710, 'height'=>474 ); // images for portfolio entries (2,3 column) //$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'=>687 ); // images for fullsize pages and fullsize slider if(avia_get_option('responsive_layout') == "responsive responsive_large") { //$avia_config['imgSize']['gallery'] = array('width'=>845, 'height'=>564 ); // 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'=>807 ); // images for fullsize pages and fullsize slider } } add_action( 'init', 'avia_change_image_size_array');
When i use it in my child-themes function.php i still get ALL standard sizes.
What do i have to do when i only need 300×300 and 80×80?PS: There are loads of old, outdated and even wrong advices in you forum that makes it a royal pain
Why arent you able to maintain a serious documentation thats up to date instead of keeping this mess?February 3, 2019 at 3:28 pm #1062243Hey heiratenmitstil,
If the code above does not work for you, you might want to consider using a plugin like
We do have the documentation and it is being amended all the time, but not all the topics have been covered yet.
Here is the link for youIf you need further assistance please let us know.
Best regards,
VictoriaFebruary 3, 2019 at 4:13 pm #1062271I did not ask for a plugin.
February 5, 2019 at 2:03 pm #1063179Hi,
Yes, but also the code you provided is only used to reset / remove the existing images.
Best regards,
BasilisMarch 20, 2019 at 11:07 am #1080761Really, Basilis?
This is your answer?Would you mind to read what i was saying or asking for?
Why is almost NONE of you reading what users are asking for?March 21, 2019 at 10:14 pm #1081579Hi heiratenmitstil,
You can try the code like this:
function avia_change_image_size_array() { global $avia_config; $avia_config['imgSize']['widget'] = array('width'=>80, 'height'=>80); $avia_config['imgSize']['square'] = array('width'=>300, 'height'=>300); // small image for blogs $avia_config['imgSize']['featured'] = null; $avia_config['imgSize']['extra_large'] = null; $avia_config['imgSize']['portfolio'] = null; $avia_config['imgSize']['portfolio_small'] = null; $avia_config['imgSize']['gallery'] = null; $avia_config['imgSize']['entry_with_sidebar'] = null; $avia_config['imgSize']['entry_without_sidebar'] = null; $avia_config['imgSize']['featured_large'] = null; $avia_config['imgSize']['magazine'] = null; $avia_config['imgSize']['masonry'] = null; $avia_config['imgSize']['shop_thumbnail'] = null; $avia_config['imgSize']['shop_catalog'] = null; $avia_config['imgSize']['shop_single'] = null; if(avia_get_option('responsive_layout') == "responsive responsive_large") { $avia_config['imgSize']['gallery'] = null; $avia_config['imgSize']['entry_with_sidebar'] = null; $avia_config['imgSize']['entry_without_sidebar'] = null; } } add_action( 'init', 'avia_change_image_size_array');
But you’ll need to regenerate thumbs anyway and for that you need a plugin.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.