WordPress.org

Forums

Meta Slider
[resolved] Meta Slider play/pause button (5 posts)

  1. Poocharo
    Member
    Posted 1 year ago #

    Is there a way of adding a play/pause button to the Meta Slider lite plugin?
    Thanks

    http://wordpress.org/plugins/ml-slider/

  2. Matcha Labs
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Poocharo,

    It seems possible, but you'll need some development experience to do this. Here is some (untested) code to get you started. You'll need to add this to your themes functions.php file

    function metaslider_flex_params($options, $slider_id) {
        if ($slider_id == 123) { // check for slider ID (optional)
            $options['pausePlay'] = "true"; // enable pause/play
            $options['pauseText'] = "'Pause'";
            $options['playText'] = "'Play'";
        }
        return $options;
    }
    add_filter('metaslider_flex_slider_parameters', 'metaslider_flex_params', 10, 2);

    We only usually cover bugs as part of free support, rather than custom feature requests. If you need further help please consider upgrading to a pro license :)

    Regards,
    Tom.

  3. Poocharo
    Member
    Posted 1 year ago #

    Hi thanks for the response - I have upgraded, pasted the above code in the functions.php and don't see any changes to the slideshow.
    Please advise,
    Thanks

  4. Matcha Labs
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Thanks for upgrading :)

    I checked the code and it seems to be OK.

    When you paste the code in, please could you check the single and double quotes are not being converted to curly quotes?

    PS I do not check the free support forums as often as I do our ticketing system (for pro customers) so please feel free to get in touch using the form here: http://www.metaslider.com/support.

    Regards,
    Tom.

  5. Tschoepler
    Member
    Posted 1 year ago #

    Hi Tom,

    just wanted to mention that the above code worked for me.

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Meta Slider
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic