How do I change the size of the accordion slider?
I would like the images to be 450X450 but the only square image option in the image size pull down is Masonry (705 x 705).
Thanks so much for your help!!
Hey epkdesign,
Try creating a new image size such as square_accordion by adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:
add_image_size('square_accordion', 510, 510, true);
add_filter( 'image_size_names_choose', 'my_custom_sizes' );
function my_custom_sizes( $sizes ) {
return array_merge( $sizes, array(
'square_accordion' => __( 'Square Accordion' ),
) );
}
Note that the image size is 510px square, this is because the Accordion Slider has a 500px minimum.
Then install the plugin Regenerate Thumbnails and go to WordPress ▸ Tools ▸ Regenerate Thumbnails
Then in your accordion slider element you can choose the new size:
and on the frontend the new image thumbnails will show:
Best regards,
Mike
Thank you so much! This worked just as I wanted it to!
Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.
Best regards,
Mike