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

    Hello,

    I’ve read many posts on how to add image size to enfold in a child theme and i don’t succeed…
    My goal is to use it in the Image Shortcode.

    This is what I add to my functions.php in the child theme :

    function avia_change_image_size_array() {
    	global $avia_config;
    	$avia_config['imgSize']['my_size'] = array('width'=>700, 'height'=>700 , 'crop' => false);	
    
           $avia_config['selectableImgSize'] = array(
    		'square' 				=> __('Square','avia_framework'),
    		'featured'  			=> __('Featured Thin','avia_framework'),
    		'featured_large'  		=> __('Featured Large','avia_framework'),
    		'portfolio' 			=> __('Portfolio','avia_framework'),
    		'gallery' 				=> __('Gallery','avia_framework'),
    		'entry_with_sidebar' 	=> __('Entry with Sidebar','avia_framework'),
    		'entry_without_sidebar'	=> __('Entry without Sidebar','avia_framework'),
    		'extra_large' 			=> __('Fullscreen Sections/Sliders','avia_framework'),
    		'my_size'				=> __('Ma taille perso','avia_framework'),
    		
    	);
    
    }
    add_action( 'init', 'avia_change_image_size_array', 0);

    But it seems that this hook is trigger after avia_backend_add_thumbnail_size(), even with a priority of 0.

    Thanks for your help.

    #434427

    Hey kyfr4n!

    We have a filter called “avf_modify_thumb_size” that you can use instead, https://kriesi.at/support/topic/modify-post-image-size/#post-432178.

    Regards,
    Elliott

    • This reply was modified 9 years, 7 months ago by Elliott.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.