- November 7, 2018 at 9:59 am #194431
thanks for the great work.
I’d like to know how do I stop resizing the thumbnail images in my website build with Portum.
I’ve followed the instructions in the topic related to Sparklin theme, but it does not apply, because I do not see that string in the functions.php file ( https://colorlib.com/wp/forums/topic/how-can-i-stop-resizing-featured-images/#post-29444).
I anticipate I do not use Jetpack plugin.
Thanks a lot
November 7, 2018 at 12:51 pm #194445
- This topic was modified 2 months, 1 week ago by fattyma.
I hope you are doing well today.
You will have to go to the Class-portum.php file via portum\\inc\\class-portum.php and change the image sizes there.
SupportNovember 23, 2018 at 12:35 pm #197570
Thank you, I’ve found the php file but I’m not sure how to modify it. Is it here? I don’t see any sizes, so how do I edit it?
add_theme_support( 'automatic-feed-links' ); add_theme_support( 'title-tag' ); add_theme_support( 'post-thumbnails' ); add_theme_support( 'customize-selective-refresh-widgets' ); add_theme_support( 'custom-logo', array( 'flex-width' => true, 'flex-height' => true, ) );
Alternatively, I see another option: below I find the image sizes section, but no page-thumbnail identifier:
/** * Image sizes */ add_image_size( 'portum-blog-section-image', 345, 240, true ); add_image_size( 'portum-blog-post-image', 520, 345, true ); add_image_size( 'portum-blog-post-sticky', 850, 460, true ); add_image_size( 'portum-main-slider', 1600, 600, true ); add_image_size( 'portum-portfolio-image', 400, 450, true ); add_image_size( 'portum-team-image', 275, 275, true ); }
Adding it to the list does not work. What should I do?
November 23, 2018 at 1:32 pm #197584
- This reply was modified 1 month, 3 weeks ago by fattyma.
You would need to change the portum blog post image to false, so that was the resizing would not happen.
SupportNovember 24, 2018 at 12:30 pm #197684
thank you for the advice. Unfortunately this change is not effective. The element class is “attachment-portum-blog-post-sticky size-portum-blog-post-sticky wp-post-image” so I changed both the blog post image to false and the blog post sticky image to false.
Neither worked. I deleted the browser cache and tried on different browsers: the image is 2858 x 1328 and (http://www.dnra.it/wp-content/uploads/2018/11/Lo-studio2.jpg) and it is being resized anyways.
Any other hint please?
Best regardsNovember 26, 2018 at 1:12 pm #198009
Since you have already changed the code, you can use this plugin to regenerate the thumbnails:
Another option is to delete the code controlling that thumbnail, it should be either the portume blog section image of the portum blog post image. Once you delete those then the theme won’t create thumbnails of the images.
SupportNovember 26, 2018 at 2:58 pm #198022
Success! Using the plugin worked: I had to resize all thumbnails.
Thanks so muchNovember 26, 2018 at 5:24 pm #198037
I will close this case now, Feel free to contact us again if you have other questions Thanks!
The topic ‘Stop resizing thumbnail images’ is closed to new replies.