• I’m trying to edit the config of my attachments slider to not automatically start… I put this in my functions.php file but it doesn’t seem to have any effect.

    $rotators['attachments'] = array( 'options' => "{slideshow:false}" );

    Can you edit the config on the attachments slider? Do I just have the wrong rotator name?

    Thanks!

    https://wordpress.org/plugins/flexslider-hg/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter elainevdw

    (@elainevdw)

    As a temporary workaround, I added this to my site’s javascript file:

    $(document).ready(function(){
    	$('#flexslider_hg_attachments').flexslider("pause");
    });

    …but I’d still like to know if it’s possible to alter other config options fort the attachments sliders. 🙂

    Plugin Author Hal Gatewood

    (@halgatewood)

    I believe just by looking over the code that what you have in the first post should work. My guess is that it has something to do with the structure of the options. I’ll do some testing but it may be something like this:

    $rotators['attachments'] = array( 'options' => '{ slideshow: "false"}' );

    Plugin Author Hal Gatewood

    (@halgatewood)

    The whole thing needs to be wrapped in a function like this:

    function hg_flexslider_hg_rotators( $rotators )
     {
     	$rotators['attachments'] = array( 'options' => "{slideshow:false}" );
     	return $rotators;
     }
     add_filter('flexslider_hg_rotators','hg_flexslider_hg_rotators' );

    I thought it was documented but I can’t seem to find anything about it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Attachment rotator options’ is closed to new replies.