-
AuthorPosts
-
April 8, 2020 at 3:19 pm #1201929
Hallo.
wir würden gerne das automatische Croppen der Bildgröße “Kategorie Bilder (=’entry_with_sidebar’)” abschalten.
Leider funktioniert das hier beschrieben Verfahren nicht: https://kriesi.at/support/topic/bildgrose-in-der-kategoriepicture-size-in-category/#post-839828.
Wir können wir bei unserem Child-Theme vorgehen?
Grüße
maxApril 12, 2020 at 7:42 pm #1203142Hey maxisgoinghome,
You need to add this code in the functions.php file:
add_filter('avf_modify_thumb_size', my_modified_thumb_size, 10, 1 ); function my_modified_thumb_size( $img_size ) { $img_size['entry_with_sidebar']['crop'] = false; return $img_size; }
If you need further assistance please let us know.
Best regards,
VictoriaApril 13, 2020 at 10:10 am #1203253This reply has been marked as private.April 16, 2020 at 3:32 pm #1204453HELLO?
April 18, 2020 at 2:24 pm #1204919Hi maxisgoinghome,
Oh..it has to be with the single quotes too, like this:
add_filter('avf_modify_thumb_size', 'my_modified_thumb_size', 10, 1 ); function my_modified_thumb_size( $img_size ) { $img_size['entry_with_sidebar']['crop'] = false; return $img_size; }
Sorry about that.
Best regards,
VictoriaApril 19, 2020 at 7:00 am #1205174To prevent cropping of exisiting images we have to upload all images again?
April 21, 2020 at 2:00 pm #1205788Hi maxisgoinghome,
You can try to use the plugin https://wordpress.org/plugins/regenerate-thumbnails/ if it does not work, you’ll need to reupload the images.
If you need further assistance please let us know.
Best regards,
VictoriaApril 21, 2020 at 2:03 pm #1205789Hi. I uploaded a new image for a new category. Cropping was still done……
April 21, 2020 at 4:51 pm #1205874Hi maxisgoinghome,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Which image should we check?
Best regards,
VictoriaApril 22, 2020 at 9:42 am #1206094This reply has been marked as private.April 22, 2020 at 7:33 pm #1206347Hi max,
Best regards,
VictoriaApril 22, 2020 at 7:43 pm #1206351Sorry I meant that the images still get cropped despite using your code. The images should not be cropped! What can I do?
April 24, 2020 at 4:46 pm #1206856Hi maxisgoinghome,
Please share the screenshot of where you added the code.
Best regards,
VictoriaApril 27, 2020 at 9:53 am #1207466… in the function.php of my child theme….
May 4, 2020 at 7:31 am #1209435Hi,
We adjusted the snippet a bit. Please add it again, then regenerate the images.
add_filter('avf_modify_thumb_size', 'my_modified_thumb_size', 10, 1 ); function my_modified_thumb_size( $img_size ) { $img_size['entry_with_sidebar']['crop'] = false; $img_size['entry_without_sidebar']['crop'] = false; return $img_size; }
You can use this plugin to regenerate the thumbnails.
// https://wordpress.org/plugins/regenerate-thumbnails/
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.