WordPress.org

Ready to get started?Download WordPress

Forums

Clean Retina
Content Slider dimension (6 posts)

  1. heatherkehoe
    Member
    Posted 1 year ago #

    How do I change the Content slider height? My images are cropped at the recommended 962px width, but I would like the height of the slider to be 800px. Any help would be great. Thank You!

  2. Sanjiv
    Member
    Posted 1 year ago #

    Hi,

    In the fuctions.php file of the theme you will find following line of code.
    add_image_size( 'slider', 962, 390, true); // used on Featured Slider on Homepage Header
    Change it to
    add_image_size( 'slider', 962, 800, true); // used on Featured Slider on Homepage Header
    Then you have to regenerate the thumbnails in order to cut your images as per the new size. http://wordpress.org/extend/plugins/regenerate-thumbnails/
    If you change the code directly then you will lose the changes in updates. So, better make child theme and make the changes there if you are familiar with making the child theme.

    After you make the changes also you may still not see the changes due to caching. So, go to theme options and click on one of the save all changes button of any bar. You will only then see the changes.

    Hope this helps.

    Sanjiv
    Team Horse

  3. heatherkehoe
    Member
    Posted 1 year ago #

    Hi Sanjiv, thank you so much for your help. I have a child site and created a functions.php file in my child site folder. When I made the following change, my site went blank! Did I write something incorrectly?

    <?php
    /* Functions file for the clean-retina-child theme*/

    function cleanretina_core_functionality()
    {

    add_image_size( 'slider', 962, 800, true); // used on Featured Slider on Homepage Header
    }

    ?>

  4. lupi73
    Member
    Posted 1 year ago #

    hi,
    normally yes this is the right way

  5. Sanjiv
    Member
    Posted 1 year ago #

    Hi heatherkehoe,

    Could you post you all code so attach your php file. I would like to look into it.
    The code you have added is not complete adding that much only will not give you what you are looking for.

    Sanjiv
    Theme Horse Team

  6. mlujan
    Member
    Posted 11 months ago #

    Hi!

    I am running into the same difficulty as the original poster. I have a fairly lengthy functionc.php file in my child theme - do you want me to post it here?

    Thank you for your time and for a terrific theme. :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.