怎么把WordPress的SSL证书的灰色小锁变成绿色呢?

  • 2,317

怎么把WordPress的SSL证书的灰色小锁变成绿色呢?

修改目录:wp-content/themes/主题

在主题下找到functions.php

1、修改 functions.php 文件:(适合wordpress站长)

这个 functions.php指的是你主题的 functions文件哦,修改时注意一下,因为现在很多主题这个文件是独立的。

//WordPress SSL 证书变绿色 update<br />add_filter('get_header', 'fanly_ssl');<br />function fanly_ssl(){<br />if( is_ssl() ){<br />function fanly_ssl_main ($content){<br />$siteurl = get_option('siteurl');<br />$upload_dir = wp_upload_dir();<br />$content = str_replace( 'http:'.strstr($siteurl, '//'), 'https:'.strstr($siteurl, '//'), $content);<br />$content = str_replace( 'http:'.strstr($upload_dir['baseurl'], '//'), 'https:'.strstr($upload_dir['baseurl'], '//'), $content);<br />return $content;<br />}<br />ob_start("fanly_ssl_main");<br />}<br />}<br />// 全部结束
adminlong
  • 本文由 发表于 2020年12月1日22:07:23
  • 转载请务必保留本文链接:https://www.sthz.net/wordpressssl/2878.html
三级片在线观看?这样的电影到底现在有没有? 涨姿势

三级片在线观看?这样的电影到底现在有没有?

三级片大家都不会陌生,一般指含有色情暴露镜头的电影。在88年,香港电影实行分级制度后,三级影片作出了标准,除了暴露,暴力镜头、还有太多粗口(骂人)以及其他可能造成18岁以下青少年儿童不良意识的题材情节...
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: