Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomhemsley/9096623 to your computer and use it in GitHub Desktop.
Save tomhemsley/9096623 to your computer and use it in GitHub Desktop.
/**
* INSTALLATION: this code should be pasted into your theme's functions.php file.
*
* - Enable CSS transitions for Flex Slider.
* - Fixes some issues with mobile browsers (slides go white after first complete rotation of slides)
*
* Compatibility: Flex Slider.
*/
function metaslider_flex_use_css($options, $slider_id, $settings) {
$options['useCSS'] = "true";
return $options;
}
add_filter('metaslider_flex_slider_parameters', 'metaslider_flex_use_css', 11, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment