New Landing How can we help? Themeforest Theme Support Supreme Standard Slider Problem Again – Cropping my Images

Viewing 15 posts - 1 through 15 (of 16 total)
  • Posted in: Supreme
  • #100790
    Rob222
    Member
    Post count: 206

    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.

    #101610
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi 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

    #101644
    Rob222
    Member
    Post count: 206

    Hi,

    Which value is the slider height…1000 or 563?

    #101931
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    It’s the 563.

    -Rui

    #102141
    Rob222
    Member
    Post count: 206

    Thank you. Worked a treat.

    #102152
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome. I’m glad that issue resolved. Thanks Ed and Rui ๐Ÿ™‚ .
    With Best Regards
    Mohammad

    #110918
    Rob222
    Member
    Post count: 206

    After 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??

    #111942
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @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

    #112303
    Rob222
    Member
    Post count: 206

    What exactly do I add to the child theme and where?

    #112367
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Is 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

    #112409
    Rob222
    Member
    Post count: 206

    I don’t see that file within the child theme directory. I only see a style.css?

    #112488
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    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
    Mohammad

    #112850
    Rob222
    Member
    Post count: 206

    Hi 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.

    #113391
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Already created the functions.php in the desired code.

    -Rui

    #113502
    Rob222
    Member
    Post count: 206

    If you mean you have already done this for me then thank you.

Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register