Title: Recommended code for pause button not working
Last modified: August 22, 2016

---

# Recommended code for pause button not working

 *  Resolved [UWMCC](https://wordpress.org/support/users/uwmcc/)
 * (@uwmcc)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/recommended-code-for-pause-button-not-working/)
 * Hi,
    I have recently installed Meta Slider- so far, so good, with no complaints.
   However, with the amount of information on the home page that it is on, I would
   like to be able to offer the option to pause the slideshow.
 * I tried using the code recommended here ([https://wordpress.org/support/topic/could-there-be-more-problems-with-this-plug-in](https://wordpress.org/support/topic/could-there-be-more-problems-with-this-plug-in))
   in my functions.php file in the Customizr child theme.
 * However, when doing so, it either does nothing or when putting ?> at the end 
   of the above file, it comes up with the error
    ‘Warning: Invalid argument supplied
   for foreach() in /home/content/61/11544861/html/wp-content/plugins/ml-slider/
   inc/slider/metaslider.class.php on line 440
 * Warning: implode() [function.implode]: Invalid arguments passed in /home/content/
   61/11544861/html/wp-content/plugins/ml-slider/inc/slider/metaslider.class.php
   on line 450′ (though I suspect that is largely irrelevant and due to my coding
   naivety!)
 * It may be worth noting that I currently only use the shortcode for the slider.
   I appreciate I only have the free version but your help would still be much appreciate.
 * Cheers,
 * Jonny Hall
 * P.S When copying the code, there is no issue with curly quote marks.
 * ——————————————
    The issue can be found here: [http://www.uwmcc.com](http://www.uwmcc.com)
   The preview works: Yes It works with other themes: Haven’t Tried It works when
   I disable all other plugins: Haven’t Tried Meta Slider version: 2.1.1
 * [https://wordpress.org/plugins/ml-slider/](https://wordpress.org/plugins/ml-slider/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [matchalabs](https://wordpress.org/support/users/matchalabs/)
 * (@matchalabs)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/recommended-code-for-pause-button-not-working/#post-5324402)
 * Hi Jonny,
 * Could you try this code instead please?
 * [https://gist.github.com/tomhemsley/7f80d70da35cb1c3beb1](https://gist.github.com/tomhemsley/7f80d70da35cb1c3beb1)
 * Regards,
    Tom
 *  Thread Starter [UWMCC](https://wordpress.org/support/users/uwmcc/)
 * (@uwmcc)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/recommended-code-for-pause-button-not-working/#post-5324484)
 * Hi,
 * That’s worked cheers.
 * Any way of moving it to the centre of the page and changing the text size? Can
   that be done in the ‘Pause’ section?
 * Thanks,
 * Jonny
 *  [matchalabs](https://wordpress.org/support/users/matchalabs/)
 * (@matchalabs)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/recommended-code-for-pause-button-not-working/#post-5324569)
 * Hi Jonny,
 * Apologies for the delay getting back to you. You’ll need to add some custom CSS
   to your themes stylesheet to alter the styling of the play/pause button. This
   should do it:
 *     ```
       .flex-pauseplay {
           text-align: center;
           cursor: pointer;
           text-size: 0.9em;
       }
       ```
   
 * Regards,
    Tom
 *  Thread Starter [UWMCC](https://wordpress.org/support/users/uwmcc/)
 * (@uwmcc)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/recommended-code-for-pause-button-not-working/#post-5324579)
 * No problem- it really is an excellent service for a free plugin. I tried editing
   the text size (just put in 2em and then 10em where 0.9em currently is) but this
   seemed to have no effect. Any advice?
 * Cheers,
    Jonny
 *  Thread Starter [UWMCC](https://wordpress.org/support/users/uwmcc/)
 * (@uwmcc)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/recommended-code-for-pause-button-not-working/#post-5324580)
 * I should add that the centering worked fine 🙂
 *  [matchalabs](https://wordpress.org/support/users/matchalabs/)
 * (@matchalabs)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/recommended-code-for-pause-button-not-working/#post-5324583)
 * Sorry, that should be “font-size”, not “text-size” 🙂
 *  Thread Starter [UWMCC](https://wordpress.org/support/users/uwmcc/)
 * (@uwmcc)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/recommended-code-for-pause-button-not-working/#post-5324595)
 * That works perfectly,
 * Thanks!
 *  [robby.liaw](https://wordpress.org/support/users/robbyliaw/)
 * (@robbyliaw)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/recommended-code-for-pause-button-not-working/#post-5324651)
 * Hello i am trying this code too. The pause and play appear no problem, only they
   appeared as a text. Is it possible if i replace the text with an image of pause
   icon and play icon?
 * Best regards,
 * Robby

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Recommended code for pause button not working’ is closed to new replies.

 * ![](https://ps.w.org/ml-slider/assets/icon.svg?rev=3523572)
 * [Slider, Gallery, and Carousel by MetaSlider - Image Slider, Video Slider](https://wordpress.org/plugins/ml-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ml-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ml-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/ml-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ml-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ml-slider/reviews/)

## Tags

 * [pause](https://wordpress.org/support/topic-tag/pause/)
 * [Pause button](https://wordpress.org/support/topic-tag/pause-button/)

 * 8 replies
 * 3 participants
 * Last reply from: [robby.liaw](https://wordpress.org/support/users/robbyliaw/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/recommended-code-for-pause-button-not-working/#post-5324651)
 * Status: resolved