HG Slider
[resolved] Changing slider width & height issues (5 posts)

  1. kibria4
    Posted 1 year ago #

    Hello. I have followed everything written in the description, however I am having trouble making the slider smaller. I added the "set_flexslider_hg_rotators" function and "add_image_size" functions to the bottom of the theme's functions.php file, but specifying the image size for the homepage-rotator does not work. I am using the following shortcode:

    [flexslider slug=homepage]
    Here is the code I have added to the bottom of my theme's function.php file:

    function set_flexslider_hg_rotators( $rotators = array() )
        $rotators['homepage']         = array( 'size' => 'homepage-rotator', 'heading_tag' => 'h1', 'options' => "{slideshowSpeed: 7000, direction: 'vertical'}" );
        $rotators['contactus']        = array( 'size' => 'thumbnail', 'orderby' => 'title', 'order' => 'DESC' );
        $rotators['gallerypage']  = array( 'size' => 'medium', 'hide_slide_data' => true );
        $rotators['amenities']        = array( 'size' => 'your-custom-size' );
        return $rotators;
    add_filter('flexslider_hg_rotators', 'set_flexslider_hg_rotators');
    add_image_size( 'homepage-rotator', '300', '150', true );

    Is there something I have done wrong?


  2. Hal Gatewood
    Plugin Author

    Posted 1 year ago #

    Did you upload the images before you resized the settings? If so you mayb need to regenerate the thumbnail sizes. There is a plugin for this:


    If not, i'll have to look into it a bit more.

  3. Clifton Canady
    Posted 1 year ago #

    This is still not working for me either.

  4. Clifton Canady
    Posted 1 year ago #

    fixed it

  5. N_Neek
    Posted 1 year ago #

    I am still trying to reduce the width and height of my slideshow but I havent been successful. How did you fix it Clifton Canady? Help me Hal Gatewood. My code is as above. I have even deleted the images and uploaded again but my images are still large. Help!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic