如何确保网站安全,网站推广优化淄博公司,无锡网站推广排名,泰安市人才网官网一、页脚文件footer.php
例如#xff0c;wordpress主题使用的是simple-life主题#xff0c;服务器IP为192.168.68.89,在wordpress主题文件中有个页脚文件footer.php#xff0c;这是一个包含网站页脚代码的文件。 footer.php 路径如下#xff1a;
/www/wwwroot/192.168.68…一、页脚文件footer.php
例如wordpress主题使用的是simple-life主题服务器IP为192.168.68.89,在wordpress主题文件中有个页脚文件footer.php这是一个包含网站页脚代码的文件。 footer.php 路径如下
/www/wwwroot/192.168.68.89/wp-content/themes/simple-life/footer.php二、修改footer.php添加网站备案信息
通过ssh工具远程连接到服务器切换到root用户切换到footer.php文件所在的目录使用vim编辑footer.php文件。
rootiZ0sZ:/# cd /www/wwwroot/192.168.68.89/wp-content/themes/simple-life/
rootiZ0sZ:/www/wwwroot/192.168.68.89/wp-content/themes/simple-life# ls
404.php content-page.php css inc page.php searchform.php style.css vendor
archive.php content.php footer.php index.php readme.txt search.php support
comments.php content-search.php functions.php js rtl.css sidebar.php template
content-none.php content-single.php header.php languages screenshot.png single.php third-party
rootiZ0sZ:/www/wwwroot/192.168.68.89/wp-content/themes/simple-life# vim footer.php
rootiZ0sZ:/www/wwwroot/192.168.68.89/wp-content/themes/simple-life# 在footer标签内的底部添加备案信息
footer/footer其中xxxxxxxxxxxxxx、豫公网安备xxxxxxxxxxxxxx号、豫ICP备yyyyyyyyyy号-1和备案图标.png它们的路径替换成自己的网站备案信息即可。 !-- 备案信息 --div classfooter-certification stylewidth:500px;margin:0 auto; padding:20px 0;a target_blank hrefhttp://www.beian.gov.cn/portal/registerSystemInfo?recordcodexxxxxxxxxxxxxxstyledisplay:inline-block;text-decoration:none;height:20px;line-height:20px;imgsrchttp://192.168.68.89/wp-content/uploads/2021/12/备案图标.png stylefloat:left; /p stylefloat:left;height:20px;line-height:20px;margin: 0px 0px 0px 5px; color:#FFFFFF;豫公网安备xxxxxxxxxxxxxx号/p/anbsp;nbsp;nbsp;a target_blank hrefhttps://beian.miit.gov.cnstyledisplay:inline-block;text-decoration:none;height:20px;line-height:20px;p stylefloat:left;height:20px;line-height:20px;margin: 0px 0px 0px 5px; color:#FFFFFF;豫ICP备yyyyyyyyyy号-1/p/a/div保存后网站首页底部备案信息如下