Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Is there any way for WordPress to rapidly increase the inclusion of Baidu?

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Today, I will talk to you about the methods of rapidly increasing the inclusion of Baidu in WordPress, which may not be well understood by many people. in order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.

The use of Baidu webmaster platform to provide links to automatically submit code, quickly increase Baidu collection, speed up the site content crawling.

1. Create a file named "baidu_js_push.php" with the following contents (automatically push JS code):

(function () {var bp = document.createElement ('script'); var curProtocol = _ window.location.protocol.split (':') [0]; if (curProtocol = 'https') {bp.src =' https://zz.bdstatic.com/linksubmit/push.js';} else {bp.src = 'http://push.zhanzhang.baidu.com/push.js';} var s = document.getElementsByTagName ("script") [0] S [XSS _ clean] .insertBefore (bp, s);}) ()

two。 Upload the baidu_js_push.php file to the root directory of the website (wordpress root).

3. Add the following code to the footer.php file of the theme file to achieve the effect of a site-wide installation.

After reading the above content, do you have any further understanding of WordPress's rapid increase in Baidu's collection? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report