SuperSide Me filter examples
<?php | |
// you can add this to your theme's functions.php file, but do not include the | |
// opening tag! | |
add_action( 'wp_enqueue_scripts', 'prefix_load_scripts' ); | |
function prefix_load_scripts() { | |
if ( function_exists( 'supersideme_has_content' ) && supersideme_has_content() ) { | |
return; | |
} | |
wp_enqueue_script( 'leaven-responsive-menu', get_stylesheet_directory_uri() . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0', true ); | |
$output = array( | |
'mainMenu' => 'Menu', | |
'subMenu' => 'Menu', | |
); | |
wp_localize_script( 'leaven-responsive-menu', 'LeavenL10n', $output ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment