WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. kibria4
    Member
    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?

    http://wordpress.org/extend/plugins/flexslider-hg/

  2. Hal Gatewood
    Member
    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:

    http://wordpress.org/extend/plugins/regenerate-thumbnails/

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

  3. Clifton Canady
    Member
    Posted 6 months ago #

    This is still not working for me either.

  4. Clifton Canady
    Member
    Posted 6 months ago #

    fixed it

  5. N_Neek
    Member
    Posted 5 months 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