Cropped image blog post
-
I have a problem with post thumbnails, when I changed the theme to Neve, the aspect ratio for post thumbnails also changed, and when loading thumbnails in the old format, the site started cropping them. //
I found an article on your site with instructions on how to change the image size by adding the code to function.php child themes, but it didn’t help and nothing changed.
https://docs.themeisle.com/article/1269-how-to-change-image-size-in-neve
Then, for the sake of interest, I tried to insert the code into the main theme and everything worked! I can’t leave it like this, because I won’t be able to update the theme. What should I do to make the code work?, because I won’t be able to update the theme. What should I do to make the code work?
Upd. I use code
function change_blog_image_size() { remove_image_size( 'neve-blog' ); add_image_size( 'neve-blog', 1060, 530, true ); } add_action( 'after_setup_theme', 'change_blog_image_size' );it’s work only in func.php of MAIN theme, not for child
The page I need help with: [log in to see the link]
The topic ‘Cropped image blog post’ is closed to new replies.
