Author Archives: Administrator

用MaxCDN加速

用MaxCDN加速 12官方教程: https://support.stackpath.com/hc/en-us/articles/360001096126-WordPress-with-CDN-Enabler-StackPath-CDN-Setup-Guide 1. 后台登录 https://control.stackpath.com/ 2. Sites > create Site 3. Continue 4. Continue 5. Continue 6. wordpress后台 安装并激活 CDN Enabler 7. Settings > CDN Enabler 8. 用https://performance.sucuri.net/ 测速发现打开速度全部在0.1秒-4秒以内 9. 用https://gtmetrix.com/reports/ 测速发现快了很多.

W3-Total-Cache 面缓存并静态化 安装,加速很多

W3 Total Cache W3 Total Cache ——又是一款网站静态化缓存插件。主要是用来实现网站页面静态化,加速网站访问速度的,与 WP Super Cache差不多,但是配置起来可能相对于WP Super Cache复杂一些,不过功能确实更强悍一些。网上关于静态化缓存的内容很多,这里我就不再过多赘述了,大家可以自行搜索一下 1234http://www.shangxinjuzi.com/w3-total-cache%E7%9A%84%E5%AE%89%E8%A3%85%E6%96%B9%E6%B3%95%E4%BB%A5%E5%8F%8A%E5%8D%B8%E8%BD%BD%E6%96%B9%E6%B3%95.html http://www.guxiaobei.com/how-to-use-w3-total-cache.html https://www.jielive.cn/765.html https://zls.chinastonetops.com/?p=720 安装和使用 如何在Wordpress上安装插件,这个我不用说了吧,网上教程一大堆…. 下面我们来讲,安装W3TC之后,如何配置各个功能! General 首先是通用功能,Toggle all caching types on or off (at once) 是说插件中的所有缓存全部开启或者关闭一次 这里我们选择默认状态,如下图: 额…..截了一张图,然后突然的懒癌发作,觉得麻烦….. 我就直接截图我后台的设置,你们照抄就是了!(照抄,这是重点啊….) Page Cache 这里稍微解释一下Page Cache ,这个意思就是页面缓存,形成一个静态页面,并且将这个静态页面存储在memcached中,用户请求这个页面的时候,不会执行php也不会读取数据库,直接从内存中读取这个页面,然后就返回给用户了。这样就极大的减小了服务器的负载。 Minify Database Cache Browser Cache Extensions W3TC这个插件还支持一些扩展插件,比如 CloudFare,FeedBurner,Yoast SEO,如果你的Wordpress上有安装这些插件的话,你可以启用他们! CDN 什么是CDN呢?各位如果对CDN不了解的话,可以先看这篇文章。 其实W3 Total Cache这个插件可以和MaxCDN直接绑定的,而且很容易,如下图所示: 上面的图片看不清么?没关系我们放大聚焦一下,如下图,你可以在这个选项中直接和MaxCDN进行绑定 什么是MaxCDN?如何获取账号呢?你可以看这篇MaxCDN的配置 那么怎么绑定呢? […]

WordPress自带的反垃圾评论设置

WordPress自带的反垃圾评论设置 1https://www.chinaz.com/web/2015/0205/382997.shtml WordPress后台 > Settings > Discussion Other Comment Settings > Comment author must fill out name and email [建议选中] 评论时 姓名,邮箱必填 User must be registered and logged in to comment [建议不选] 用户必须注册并登录才能发表评论,不适合开启,否则正常用户的评论的热情也会下降,但有人研究发现这样会有利WP注册用户的增加. 如果选择了这一项,基本上就可以阻止所有的垃圾评论了. Automatically close comments on articles older than 14 days [建议不选中] 15天后关闭评论,这个不能选中,否则以后别人就不能评论 Email me whenever > Anyone posts a comment 有人评论就发邮件通知我,这个好用 Email […]

WordPress 源代码,主题及插件如何安装?

WordPress 源代码,主题及插件如何安装? 备注: 第5步,第7步特别重要,否则容易失败 1. 把源代码上传到网站根目录并解压 2. 创建后台登陆账户 3. 安装主题 4. 出现FTP验证错误 5. 解决FTP验证错误 1vi wp-config.php 1234if(is_admin()) {     add_filter(‘filesystem_method’, create_function(‘$a’, ‘return "direct";’ ));     define( ‘FS_CHMOD_DIR’, 0751 ); } 6. 出现无权限错误 1Unable to create directory wp-content/uploads/2023/04. Is its parent directory writable by the server? 7. 解决无权限错误 12chmod -R 777 /home/wwwroot/default/zls/wp-content chmod -R […]

lanke源代码的安装过程 [sofi’s web]

备注:第7步,第9步特别重要,否则容易安装失效 1. lankecms.tar.gz 上传到网站根目录 2. 解压lankecms.tar.gz 3. 数据库上新建一个数据库 lankecms 4. 开始安装 5. 安装成功 6. 但是后台无法登陆 7. 把config.php 复盖 ../MyAccount/Conf/config.php 8. 后台可以正常登陆 9. 开启静态化,(sofi那个网站要这个步骤,但hongsheng-stone.com不要这个步骤,一改就会所有网站打不开.不改就能运行) 打开你服务器配置文件 1vi /usr/local/nginx/conf/vhost/www.hongsheng-stone.com.conf # 在server段location /加载此内容 1234567891011location / {     if (!-e $request_filename) {         rewrite  ^(.*)$  /index.php?s=$1  last;         break;       } […]

Google.facebook,twitter 地址

1234567891011121314151617<div> <a href="https://plus.google.com/u/0/101641800527868173429" target="_blank" title="Follow on Google+"><img src="/wp-content/themes/pic/google-plus01.png" onmouseover=’src="/wp-content/themes/pic/google-plus02.png"’ onmouseout=’src="/wp-content/themes/pic/google-plus01.png"’ /></a> <a href="https://www.facebook.com/hongshengstonecom" target="_blank" title="Follow on Facebook"><img src="/wp-content/themes/pic/facebook01.png" onmouseover=’src="/wp-content/themes/pic/facebook02.png"’ onmouseout=’src="/wp-content/themes/pic/facebook01.png"’ /></a> <a href="https://www.twitter.com/hongshengstone" target="_blank" title="Follow on Twitter"><img src="/wp-content/themes/pic/twitter01.png" onmouseover=’src="/wp-content/themes/pic/twitter02.png"’ onmouseout=’src="/wp-content/themes/pic/twitter01.png"’ /></a> <a href="https://www.instagram.com/hongshengstone" target="_blank" title="Follow on Instagram"><img src="/wp-content/themes/pic/instagram01.png" onmouseover=’src="/wp-content/themes/pic/instagram02.png"’ onmouseout=’src="/wp-content/themes/pic/instagram01.png"’ /></a> <a href="https://www.pinterest.com/hongshengstone" target="_blank" title="Follow on Pinterest" ><img src="/wp-content/themes/pic/pinterest01.png" onmouseover=’src="/wp-content/themes/pic/pinterest02.png"’ onmouseout=’src="/wp-content/themes/pic/pinterest01.png"’ /></a> <a href="mailto:info@chinastonetops.com" target="_blank" […]

后台注册通过短信验证用户手机号 [精品]

WordPress插件:后台注册通过短信验证用户手机号 [精品] 1https://www.ludou.org/wordpress-register-check-user-phone-via-sms.html 步骤 1. 为了确保插件能够正常运行,推荐使用PHP 5.6以上的版本,低于这个版本可能导致插件无法使用 php -v //确认已经是5.6版本 2. 阿里云短信服务需要一个阿里云账户,也可以用淘宝账号登陆,没有的可以自己注册一个 3. 登陆阿里云后台 已登陆 4. 在阿里云控制台的 秘钥管理页面,点击 创建Access Key,并且确保处于 启用 状态,获取到 AccessKeyId 与 AccessKeySecret 阿里云登陆 > 控制台 > 找不到秘钥管理 秘钥管理页面:https://usercenter.console.aliyun.com/#/manage/ak 选择 “继续使用AccessKey” > 创建Access Key > 点击获取 > 校验码 > 确定 AccessKey信息保存好 并且确保处于 启用 状态,获取到 AccessKeyId 与 AccessKeySecret 5. 在阿里云 短信签名页面: https://dysms.console.aliyun.com/dysms.htm?accounttraceid=eded120f-feea-4a96-890c-48a6d12d93a9#/ 添加签名 签名类型选择”验证码或短信通知”,签名填你的网站名称 […]

仿类似于 https://www.smcgroup.ca/ 网站 后续笔记

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748Css 加粗: <strong>…</strong>               //好像是<p></p>里面加<strong>才有效 文字左对齐/右对齐/中间对齐: //好像是里面加pos才有效 <p style="text-align: left;">…</p>[style里面的]<p><div><a>都可以用 文字左对齐/右对齐/中间对齐: text-align: left; 字体颜色: color: #fe6f12; 字体大小: font-size: 31px; 背景颜色: background-color: #fe6f12; 背景颜色(渐变): background-color:rgba(94, 94, 94, 0.43); 四个角倒圆: border-radius:5px 5px 5px 5px; 行高: line-height:20px; border:1px 按纽: <p><a class="button" style="line-height: 50px; height: 50px; font-size: 14px; padding: 0 50px; background-color: #fe6f12;" […]