wordpress 瞎折腾

2018年9月11日10:51:07 发表评论 2,494 views
广告也精彩

昨日部署完wordpress后,无法登陆后台,发现有严重漏洞,修复情况如下

wordpress 瞎折腾

1, Canvas 背景布 前端一种样式

2,http://zmingcx.com/ 知更鸟 模板

3,插件

wordpress 瞎折腾

4,记录站点访问情况的一种展示 3D地球仪

https://www.revolvermaps.com/?target=setupgl
.

5.标题栏图片字体

法1:安装 Font Awesome 4 Menus插件

然后去菜单设置-css类-设置图标样式
图标样式模板

法2:

1,首先下载字体,放到css目录下
2,加载里面的字体,到指定位置

@font-face {
    font-family: 'FontAwesome';
    src: url('fontawesome-webfont.eot?v=4.4.0');
    src: url('fontawesome-webfont.eot?#iefix&v=4.4.0') format('embedded-opentype'),
    url('fontawesome-webfont.woff2?v=4.4.0') format('woff2'),
    url('fontawesome-webfont.woff?v=4.4.0') format('woff'),
    url('fontawesome-webfont.ttf?v=4.4.0') format('truetype'),
    url('fontawesome-webfont.svg?v=4.4.0#fontawesomeregular') format('svg');
    font-weight: normal;
    font-style: normal;
}
#site-nav .down-menu li{
  font-family:"FontAwesome";
}
#site-nav .down-menu li > a::before{
  margin-right:0.3em;
}
#menu-item-101 > a::before{
  content:'\f26c';
}
#menu-item-120 > a::before{
  content: "\f203";
}
#menu-item-102 > a::before{
  content: "\f1be";
}
#menu-item-118 > a::before{
  content: "\f209";
}
#menu-item-121 > a::before{
  content: "\f1c0";
}
#menu-item-124 > a::before{
   content: "\f201";
}
#menu-item-123 > a::before{
   content: "\f211";
}
#menu-item-117 > a::before{
   content: "\f27c";
}
#menu-item-113 > a::before{
   content: "\f21c";
}

看下结果把:
wordpress 瞎折腾

6,wordpress 增加天气插件

使用2345 生成的插件,在自定义中 插入html 语句 即可。

7 wordpress 添加 Markdown 编辑器

1) 添加插件
插件名称:WP Editor.md
使用方法:
wordpress 瞎折腾
2) 调整wordpress支持 Markdown 功能
wordpress 瞎折腾

8 首页侧边栏3D标签 链接404错误

wordpress 瞎折腾

9 鼠标添加点击特效 国富民强

.mcnmq{background:#b485e2;color:#fff;padding:8px 12px;border-radius:6px}
.mcnmw{background:#74d62f;color:#fff;padding:2px 8px;border-radius:2px}
.mcnmq:hover{background:red;}
#top-header{
    background:#FFF;
    border-bottom:none;
}

wordpress 瞎折腾
wordpress 瞎折腾

10 顶部栏 自定义CSS样式添加

<script type="text/javascript">
/* 鼠标特效 */
var a_idx = 0;
jQuery(document).ready(function($) {
    $("body").click(function(e) {
        var a = new Array("富强", "民主", "文明", "和谐", "自由", "平等", "公正" ,"法治", "爱国", "敬业", "诚信", "友善");
        var $i = $("<span />").text(a[a_idx]);
        a_idx = (a_idx + 1) % a.length;
        var x = e.pageX,
        y = e.pageY;
        $i.css({
            "z-index": 999999999999999999999999999999999999999999999999999999999999999999999,
            "top": y - 20,
            "left": x,
            "position": "absolute",
            "font-weight": "bold",
            "color": "#ff6651"
        });
        $("body").append($i);
        $i.animate({
            "top": y - 180,
            "opacity": 0
        },
        1500,
        function() {
            $i.remove();
        });
    });
});
</script>

wordpress 瞎折腾

11、博客添加 Canvas画布特效

wordpress 瞎折腾
wordpress 瞎折腾

/**
 * Copyright (c) 2016 hustcc
 * License: MIT
 * Version: v1.0.1
 * Name: 逗哥架构师之路
**/
!function(){function n(n,e,t){return n.getAttribute(e)||t}function e(n){return document.getElementsByTagName(n)}function t(){var t=e("script"),o=t.length,i=t[o-1];return{l:o,z:n(i,"zIndex",-1),o:n(i,"opacity",.5),c:n(i,"color","0,0,0"),n:n(i,"count",99)}}function o(){a=m.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,c=m.height=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function i(){r.clearRect(0,0,a,c);var n,e,t,o,m,l;s.forEach(function(i,x){for(i.x+=i.xa,i.y+=i.ya,i.xa*=i.x>a||i.x<0?-1:1,i.ya*=i.y>c||i.y<0?-1:1,r.fillRect(i.x-.5,i.y-.5,1,1),e=x+1;e<u.length;e++)n=u[e],null!==n.x&&null!==n.y&&(o=i.x-n.x,m=i.y-n.y,l=o*o+m*m,l<n.max&&(n===y&&l>=n.max/2&&(i.x-=.03*o,i.y-=.03*m),t=(n.max-l)/n.max,r.beginPath(),r.lineWidth=t/2,r.strokeStyle="rgba("+d.c+","+(t+.2)+")",r.moveTo(i.x,i.y),r.lineTo(n.x,n.y),r.stroke()))}),x(i)}var a,c,u,m=document.createElement("canvas"),d=t(),l="c_n"+d.l,r=m.getContext("2d"),x=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(n){window.setTimeout(n,1e3/45)},w=Math.random,y={x:null,y:null,max:2e4};m.id=l,m.style.cssText="position:fixed;top:0;left:0;z-index:"+d.z+";opacity:"+d.o,e("body")[0].appendChild(m),o(),window.onresize=o,window.onmousemove=function(n){n=n||window.event,y.x=n.clientX,y.y=n.clientY},window.onmouseout=function(){y.x=null,y.y=null};for(var s=[],f=0;d.n>f;f++){var h=w()*a,g=w()*c,v=2*w()-1,p=2*w()-1;s.push({x:h,y:g,xa:v,ya:p,max:6e3})}u=s.concat([y]),setTimeout(function(){i()},100)}();

12、知更鸟使用https后,分享功能失效如何破,参考下面博友的文章。【已亲测】

https://www.haoht123.com/778.html
增加百度分享
wordpress 瞎折腾

13、网页静态化

14、添加百度自动收录

<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>

放到用于在页脚添加同步统计代码,但是会拖慢网页速度,后去改变为sitemap

  • QQ精品交流群
  • weinxin
  • 微信公众号
  • weinxin
广告也精彩
admin

发表评论

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