-
AuthorPosts
-
June 8, 2016 at 9:48 am #644638
Hi Supporters,
I am trying to generate new image sizes in a child theme. I have added this to the child theme functions.php file:
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'=>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'=>321); // 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']['door-thumb'] = array('width'=>133, 'height'=>200 , 'crop' => false); // small preview for Doors $avia_config['imgSize'] = apply_filters('avf_modify_thumb_size', $avia_config['imgSize']); $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'), 'door-thumb' => __('Door Thumb','avia_framework'), ); } add_action( 'init', 'avia_change_image_size_array');
but the one I added which is door-thumb in the last row doesn’t appear in the image size list.
Please advice,
Thanks,
June 8, 2016 at 10:37 am #644669Here:
June 9, 2016 at 6:08 am #645228Hi,
Could you please provide us with a temporary admin login so that we can take a closer look? You can post the details in the Private Content section of your reply.
Best regards,
RikardJune 9, 2016 at 10:56 am #645359Rikard,
Thanks for reply. I’m using a plugin right now and it solved the problem but I prefer to do it manually rather than a plugin. I will send you credentials later.
Thanks,
June 12, 2016 at 4:12 am #646769Hi,
we definitely recommend to work with this plugin:
https://wordpress.org/plugins/simple-image-sizes/Best regards,
AndyJune 12, 2016 at 10:48 am #646821Hi Andy,
Thanks for recommendation and yes, I’m using this plugin right now.
June 12, 2016 at 1:27 pm #646903Hi!
Glad it works for you, as it is the easiest way to get with it.
Please let us know if you need something else from us!Regards,
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.