The following column WordPress Website Building Tutorial will introduce to you how WordPress can quickly increase Baidu inclusion and speed up website content crawling. I hope it will be helpful to friends in need!
Use the links provided by Baidu Webmaster Platform to automatically submit codes, quickly increase Baidu inclusion, and speed up website content crawling.
1. Create a file named "baidu_js_push.php" with the following content (automatically push JS code):
<script> (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.parentNode.insertBefore(bp, s); })(); </script>
2. Upload the baidu_js_push.php file to the website root directory (wordpress root Table of contents).
3. Add the following code to the footer.php file of the theme file to achieve the effect of installing it in one place and covering the entire site.
<?php include_once("baidu_js_push.php") ?>
For more WordPress technical articles, please visit the WordPress column!
The above is the detailed content of How to quickly increase Baidu inclusion in WordPress. For more information, please follow other related articles on the PHP Chinese website!