Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #369555

    Hi,
    as suggested in this post https://kriesi.at/support/topic/override-the-global-avia_config-within-child-functions-php/ I tried to add a custom image size using the following code in my child theme:

    //add custom images size
    function avia_change_image_size_array() {
      global $avia_config;
      $avia_config['imgSize']['sfinder'] = array('width'=>120, 'height'=>120 , 'crop' => false);
      $avia_config['selectableImgSize']['sfider'] = __('Solution finder thumb','avia_framework');
    }
    add_action( 'init', 'avia_change_image_size_array');

    it seems to not work. I cannot see the new image size when I select a media. Where am I wrong?

    Thanks

    • This topic was modified 10 years ago by deved.
    #369764

    Hi deved!

    You have a typo on “sfider”.

    Cheers!
    Elliott

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.