Tagged: Portfolio grid image size
Hello!
I’ve added some custom code to change the dimensions of the portfolio grid using this code:
function enfold_customization_modify_thumb_size( $size ) {
$size[‘portfolio_small’] = array(‘width’=>1200, ‘height’=>1600);
return $size;
}
/*filter portfolio sorting */
add_filter(‘avia_post_grid_query’, ‘avf_custom_post_grid_query’);
function avf_custom_post_grid_query ( $query ) {
if(is_singular(‘portfolio’)) {
$query[‘offset’] = 1;
}
return $query;
}
Works great, but now our client is asking us to revert to the original enfold portfolio ratio (landscape) :(
We’ve tried deleting the code from Enfold Child functions php. but nothing seems to change.
Are we missing any action, asides from deleting the code from theme functions?
Thanks a lot for your help.
Hey nasi,
Thank you for the inquiry.
We’ve tried deleting the code from Enfold Child functions php. but nothing seems to change.
After deleting the filter from the functions.php file, you’ll need to regenerate the thumbnails or re-upload the images. Please create a site backup or restore point before proceeding, then try this plugin:
// https://wordpress.org/plugins/regenerate-thumbnails/
Best regards,
Ismael
Hey Ismael,
Will proceed as per your suggestion.
Already used regenerate-thumbnails when we added the special thumbs dimensions and worked fine.
Thanks a lot for your help!
Nasi
Hi,
Glad Ismael could 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