Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/397.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/242.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 切换到SSL后,将在新窗口中打开菜单链接_Javascript_Php_Jquery_Wordpress_Ssl - Fatal编程技术网

Javascript 切换到SSL后,将在新窗口中打开菜单链接

Javascript 切换到SSL后,将在新窗口中打开菜单链接,javascript,php,jquery,wordpress,ssl,Javascript,Php,Jquery,Wordpress,Ssl,难倒了!我将SSL添加到我的站点。一切似乎都井然有序,但现在菜单项(使用带有wordpress的Uber菜单插件)在一个新窗口中打开 我发现了两件事。当这个加载在functions.php文件中的文件是http与https时,链接会按需要在同一窗口中打开,但它会打断我在主页上的一些滑块 () 当更改为https时,滑块工作,但现在链接在新窗口中打开 寻求任何帮助 函数代码文件 function modify_jquery() { if (!is_admin()) {

难倒了!我将SSL添加到我的站点。一切似乎都井然有序,但现在菜单项(使用带有wordpress的Uber菜单插件)在一个新窗口中打开

我发现了两件事。当这个加载在functions.php文件中的文件是http与https时,链接会按需要在同一窗口中打开,但它会打断我在主页上的一些滑块

()

当更改为https时,滑块工作,但现在链接在新窗口中打开

寻求任何帮助

函数代码文件

   function modify_jquery() {
    if (!is_admin()) {
        // comment out the next two lines to load the local copy of jQuery
        wp_deregister_script('jquery');
        wp_register_script('jquery', 
'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js', false, '1.8.2');
        // wp_enqueue_script('jquery');
    }
}
add_action('init', 'modify_jquery');
网站:


编辑:我注意到某个地方在运行此文件时向我的所有链接添加了“\u blank”标记。但它似乎不是那个文件,而是另一个jquery文件。至少我想

您的链接href使用属性target=“\u blank”定义,这意味着它们将在新窗口中打开。尝试使用target=“\u self”或将其完全删除,因为\u self是默认设置,我在哪里更改它?它似乎受到js文件的影响。它在哪里?我熟悉blank和self,但不明白为什么添加ssl后会发生变化。