ecoleman
Suspended / Banned
- Messages
- 6,992
- Name
- Elliott
- Edit My Images
- No
I have just setup a website to show off some of my images. It's a Wordpress site and I've purchased a theme which has installed fine.
The theme has some functions in a file called thumbnails.php that generates a bunch of image sizes when you upload an image. One size for full screen gallery, smaller ones for thumbnails etc.
The maximum file size it creates it 2048px which I want to increase to 2560px as the 2048px images are upscaled in larger monitors reducing the quality.
This function resides in wp-content/themes/border/inc/includes/functions/thumbnails.php and the function is
If I change this to 2560 and save it and upload a new image the max sized is correctly sized to 2560 as expected, but I am aware that if the theme is updated this will revert back to 2048.
I've read a bit about child themes and the function.php file, but being a Wordpress newbie I don't really understand what I need to do.
How do I make this change so that future updates to the theme will not revert the file size back to 2048px?
Thanks in Advance.
The theme has some functions in a file called thumbnails.php that generates a bunch of image sizes when you upload an image. One size for full screen gallery, smaller ones for thumbnails etc.
The maximum file size it creates it 2048px which I want to increase to 2560px as the 2048px images are upscaled in larger monitors reducing the quality.
This function resides in wp-content/themes/border/inc/includes/functions/thumbnails.php and the function is
Code:
function wpgrade_custom_thumbnails (){
// Add theme support for Featured Images
add_theme_support( 'post-thumbnails' );
/*
* MAXIMUM SIZE
* Maximum Full Image Size
* - Sliders
* - Lightbox
*/
add_image_size('full-size', 2048); <---- I WANT TO CHANGE THIS TO 2560
/*
* MEDIUM SIZE
* - Split Article
* - Tablet Sliders
*/
add_image_size('medium-size', 1024);
/*
* SMALL SIZE
* - Masonry Grid
* - Mobile Sliders
*/
add_image_size('small-size', 400);
/*
* SQUARE
* - Gallery Grid
* - Portfolio & Gallery Archive
*/
add_image_size('square', 400, 400, true);
// Classic blog
add_image_size('post-big', 840);
// Border blog
add_image_size('post-medium', 265, 328, true);
// Split blog
add_image_size('post-medium', 265, 328, true);
}
If I change this to 2560 and save it and upload a new image the max sized is correctly sized to 2560 as expected, but I am aware that if the theme is updated this will revert back to 2048.
I've read a bit about child themes and the function.php file, but being a Wordpress newbie I don't really understand what I need to do.
How do I make this change so that future updates to the theme will not revert the file size back to 2048px?
Thanks in Advance.
Last edited: