Get the App
SLTechnology News&Howtos  ›  Servers  › 

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

Shulou Source: shulou.com Published: 2022-06-02 07:25:01 10月04日 Update

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.

Tags: Content documents code method root directory website theme site-wide platform effects more knowledge webmaster articles industry information information channels links channels into one Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Huawei Shulou Technology NVidia Shulou Tech Info