Okay
  Public Ticket #928563
Increase Homepage Slider Size
Closed

Comments

  •  2
    Lakshay started the conversation

    Hi there

    Thanks for the beautiful theme. I have a question though.

    I want to increase the size of my homepage slider. Is there any way I can do it?

    Please let me know.

    Best,

    Lakshay

  •  1,715
    Barry replied

    Hi Lakshay,

    Thank you for the compliment

    The height of the slider is based on the crop size of the slider images. If you want to increase the size you need to change the values of 'thelandscaper-home-slider-' image sizes (3 in total, 1 for mobile, 1 for tablet and 1 for desktop) which you can find in the functions.php line 74 till 76.

    Recommend is to install the child theme for this because when you change code directly in the parent theme files they will be overwritten when updating the theme.

    After you changes the image sizes please install the Regenerate Thumbnails plugin and run the plugins once via Tools -> Regen. Thumbnails. When the proces bar is done you can delete the plugin.

    If you want to have a easier method without touching the code you can always download another slider plugin like Crelly Slider (free) or the premium plugins like Revolution Slider or Layer Slider, which are compatible with the theme.

    If you have any questions, feel free to ask

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes

  •  2
    Lakshay replied

    Hi Barry

    I created a child theme and I am using the functions.php in the child theme. I just want to resize the desktop version of the slider. This is the default code in the functions.php of the theme: add_image_size( 'thelandscaper-home-slider-l', 1920, 730, true );

    I want to increase the slider height to 850px. When I change 730 to 850 and regenerate thumbnails, the slider size increases but the height of the image is not fixed at 850. I think it is taking the original size of the image. Any thoughts?

    Thanks



  •  1,715
    Barry replied

    Hi there,

    The slider images get cropped if they are uploaded with at least the size you specify in the add_image_size(). So for example if you changed it to 1920 and 850 please make sure the image is at least 1920 pix in width. The the images will be cropped. Please note that when you change the values in the add_image_size() you need to run the Regenerate Thumbnails plugin. Unfortunately WordPress doesn't crop them automatically after you change the values.

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes

  •  2
    Lakshay replied

    Hi Barry

    All the slider images are 1920px wide and over 850px in height. I did regenerate the URLs after changing the size in the function. Please see this link: http://test.webspacepros.com/garden-design/

    The images are not getting cropped at 850px height. They are using their default height value.

    Thanks

  •  1,715
    Barry replied

    Hi,

    Can you provide me a login to WordPress? I will take a look. (Please use the 'private reply' for the credentials)

    Thank you

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes

  •  2
    Lakshay replied

    Figured it out. There was a problem in the functions file.

    Thanks for your prompt reply. Much appreciated !

  •  1,715
    Barry replied

    Great! You're welcome.

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes