Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Supreme › Standard Slider Problem Again – Cropping my Images
New Landing › How can we help? › Themeforest Theme Support › Supreme › Standard Slider Problem Again – Cropping my Images
- This topic has 15 replies, 5 voices, and was last updated 9 years by Kyle – SUPPORT.
-
Posted in: Supreme
-
August 13, 2014 at 4:27 pm #100790
Hi there,
Please see this link.
I add an image to my gallery and chose to select the standard slider to showcase more than one image. The result was it has cut (cropped) some of my images. Can you fix this please and tell me why this problem happens. This is the second time it has happened. I would like to know I can use the standard slider without having problems of cropping every single time.
August 16, 2014 at 4:10 am #101610Hi Rob,
You need to edit functions.php line 88:
add_image_size( 'full-width-image', 1000, 563, true);
Simply set the image size to be a max value you’d want the slider height to be, and it will then follow that. You’ll need to re-upload the images, or use the Thumbnail Regeneration plugin to re-create the image sizes after the change.
– Ed
August 16, 2014 at 8:49 pm #101644Hi,
Which value is the slider height…1000 or 563?
August 18, 2014 at 11:30 am #101931Hi,
It’s the 563.
-Rui
August 19, 2014 at 12:25 am #102141Thank you. Worked a treat.
August 19, 2014 at 3:29 am #102152Hi,
You most welcome. I’m glad that issue resolved. Thanks Ed and Rui ๐ .
With Best Regards
MohammadSeptember 15, 2014 at 7:47 pm #110918After updating my template to the latest one and updating wordpress to version 4, I have found this problem again! One of my slider images was getting cropped so I found this topic again and altered the code which I was told to do about a month ago.
Now I need to regenerate all my images again! Will I need to alter the code and regenerate all my images EVERYTIME I update my wordpress template etc??
September 18, 2014 at 3:22 am #111942Hi @Rob222
Yes – when you update the original file will be overwritten. You can try adding that line to the child theme – it may override the one set in the parent theme.
– Ed
September 18, 2014 at 4:53 pm #112303What exactly do I add to the child theme and where?
September 18, 2014 at 10:58 pm #112367Is the line below
add_image_size( 'full-width-image', 1000, 563, true);
Add it to the file functions.php inside the child theme directory.
-Rui
September 19, 2014 at 5:56 am #112409I don’t see that file within the child theme directory. I only see a style.css?
September 19, 2014 at 9:43 am #112488Hi,
You can create a functions.php in child theme directory and insert the code.<?php add_image_size( 'full-width-image', 1000, 563, true); ?>
Thanks ๐
With Best Regards
MohammadSeptember 20, 2014 at 1:01 am #112850Hi there,
Sorry to be a pain, but could you please create the file for me and insert the code because I have no clue how to go about doing what you ask. It would be much quicker for yourself to just do it. I’d very much appreciate that.
Nut instead of the 563 value, could you please make it 1800. Thank you.
September 22, 2014 at 4:34 pm #113391Hi,
Already created the functions.php in the desired code.
-Rui
September 23, 2014 at 1:06 am #113502If you mean you have already done this for me then thank you.
-
Posted in: Supreme
You must be logged in and have valid license to reply to this topic.