douya2982 2015-02-01 13:19
浏览 43
已采纳

Wordpress随时随地打开新窗口[关闭]

I have a wordpress page and every link I have it opens into a new tab. This happened when I change the wordpress from localhost to a remote server.

What can be the problem?

Thanks.

  • 写回答

1条回答 默认 最新

  • dongxie559554 2015-02-01 13:40
    关注

    If you check the HTML page source, you can see that every link in your page has the target="_blank" attribute, which means that every time you click on them, the browser will open a new tab.

    If you didn't put the target="_blank" manually (hence i suggest you to check your theme .php files) something may inject them when the page is loaded. Thus there might be some possibilities:

    1. A plugin you (or the theme) maybe installed is changing all links to open in a new tab
    2. That theme has a particular option which enable this behaviour and filter pages and rewrites the links.

    Without any more information, it's a little hard to answer your question...

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部