Syntax error, unrecognized expression for href

后端 未结 4 1621
一生所求
一生所求 2020-12-17 08:31

When I add below script and run. I am getting this:

Uncaught Error: Syntax error, unrecognized expression: ul li a[href=#!id1]

4条回答
  •  独厮守ぢ
    2020-12-17 09:15

    you may add the below code in functions.php

    function modify_jquery() {
    if (!is_admin()) {
    	wp_deregister_script('jquery');
    	wp_register_script('jquery', 'https://code.jquery.com/jquery-1.11.3.min.js');
    	wp_enqueue_script('jquery');
    }
    }
    add_action('init', 'modify_jquery');

提交回复
热议问题