0 1 2 3 4 5 6 7 8 9 10 11 12 |
/* over-ride adjust-logo */ function jma_adjust_theme_scripts() { // Register child theme file before Jump Start to override global $jma_spec_options; if($jma_spec_options['child_sticky_menu'] || logo_in_menu()){ wp_dequeue_script( 'adjust_logo' ); wp_enqueue_script( 'grandchild_adjust_logo', get_stylesheet_directory_uri() . '/jma-grandchild-6-0/adjust-logo.js', array('jquery') ); } } add_action( 'wp_enqueue_scripts', 'jma_adjust_theme_scripts', 20 ); |