Slide toggle Jquery UI

As jQuery UI is included in the WordPress Core, you don’t need to load it from the CDN. Please try to change your wp_enqueue_scripts from wp_enqueue_script(‘jquery-ui’, ‘http://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js’, ‘1’, true); wp_enqueue_script(‘menu_script’, get_stylesheet_directory_uri() . ‘/js/menu.js’, array(‘jquery’, ‘jquery-ui’), ‘1’, true); to wp_enqueue_script(‘jquery-ui-core’); wp_enqueue_script(‘jquery-effects-slide’); wp_enqueue_script(‘menu_script’, get_stylesheet_directory_uri() . ‘/js/menu.js’, array(‘jquery’, ‘jquery-ui-core’,’jquery-effects-slide’), ‘1’, true); Also be sure to call for the … Read more

main navigation menu disappear after adding jquery source file

jQuery is already being included on the page, so you don’t need to include it again. I’m assuming your adding that because you want to run the JS below it? $(document).ready(function() { $(“#countryChooser”).change(function() { if ($(this).val() !== “”) { var selector = “.” + $(this).val(); $(‘.box’).not(selector).hide(); $(selector).show(); } else { $(“.box”).hide(); } }).change(); }); If … Read more

Theme style overrides the plugin style

In a plugin, you have hook add_action( string $tag, callable $function_to_add, int $priority = 10, int $accepted_args = 1 ) to enqueue script and CSS. In this hook, there is third parameter $priority you can add the lowest priority to load that hook earlier in execution. So you have 2 options: So if you do … Read more

Jquery UI not working

This works for me locally in testing.. add_action(‘wp_enqueue_scripts’,’enq_menu_scripts_and_styles’); function enq_menu_scripts_and_styles() { // UI Core, loads jQuery as a dependancy wp_enqueue_script( ‘uicore’, ‘http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.min.js’, array(‘jquery’) ); // UI Theme CSS wp_enqueue_style( ‘uicss’, ‘http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/ui-darkness/jquery-ui.css’ ); // Selectmenu JS wp_enqueue_script( ‘uisel’, ‘http://jquery-ui.googlecode.com/svn/branches/labs/selectmenu/ui.selectmenu.js’ ); // Selectmenu CSS wp_enqueue_style( ‘uicss2’, ‘http://jquery-ui.googlecode.com/svn/branches/labs/selectmenu/ui.selectmenu.css’ ); } add_action(‘wp_head’,’select_menu_test_code’); // Simple test code function select_menu_test_code() { … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)