Created
April 9, 2019 18:55
-
-
Save jom/81c700d11e19d32574a197466b47fb6c to your computer and use it in GitHub Desktop.
Change jQuery UI CSS
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 | |
add_action( 'wp_loaded', function() { | |
wp_deregister_style( 'jquery-ui' ); | |
$jquery_version = isset( $wp_scripts->registered['jquery-ui-core']->ver ) ? $wp_scripts->registered['jquery-ui-core']->ver : '1.9.2'; | |
wp_register_style( 'jquery-ui', '//code.jquery.com/ui/' . $jquery_version . '/themes/black-tie/jquery-ui.css', array(), $jquery_version ); | |
}, 11 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment