Created
January 15, 2016 06:14
-
-
Save ThierryA/53dbd28816e0f0f44390 to your computer and use it in GitHub Desktop.
Beans: enqueue UIkit Slider components.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Do not include the opening php tag if it is already included in your file. | |
add_action( 'beans_uikit_enqueue_scripts', 'beans_child_enqueue_uikit_components' ); | |
function beans_child_enqueue_uikit_components() { | |
// Components advised for the slider to work smoothly depending on your needs. | |
// Uncomment slideshow-fx if fancy animations are used. | |
beans_uikit_enqueue_components( array( 'animation', 'flex' ) ); | |
beans_uikit_enqueue_components( array( 'slideshow', 'slidenav', 'dotnav', /* 'slideshow-fx' */ ), 'add-ons' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment