Skip to content

Instantly share code, notes, and snippets.

@ThierryA
Created January 15, 2016 06:14
Show Gist options
  • Save ThierryA/53dbd28816e0f0f44390 to your computer and use it in GitHub Desktop.
Save ThierryA/53dbd28816e0f0f44390 to your computer and use it in GitHub Desktop.
Beans: enqueue UIkit Slider components.
<?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