Last active
August 29, 2015 14:16
-
-
Save morktron/3f1b5bfa7f0e407ef241 to your computer and use it in GitHub Desktop.
Responsive tabs - embed into Wordpress
This file contains hidden or 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
//* Enqueue files needed for Responsive-Tabs script | |
add_action( 'wp_enqueue_scripts', 'enqueue_responsive_tabs' ); | |
function enqueue_responsive_tabs() { | |
if ( is_page('10' ) ):{ | |
wp_enqueue_script( 'responsive-tabs', get_stylesheet_directory_uri() . '/javascript/responsiveTabs.min.js', array( 'jquery' ), '1.0.0', true ); | |
wp_enqueue_script( 'responsive-tabs-init', get_stylesheet_directory_uri() . '/javascript/responsiveTabs.min.init.js', array( 'responsive-tabs' ), '1.0.0', true ); | |
wp_enqueue_style( 'responsive-tabs-css', get_stylesheet_directory_uri() . '/css/responsive-tabs.css' ); | |
} | |
endif; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The files needed are here: https://github.com/jellekralt/Responsive-Tabs