首页广告位视频
把下面的代码放到主题后台设置中的
开发者设置-首页列表最前方广告中,最后保存设置即可<style> video { border-radius: 10px; } </style><video width="100%" src="http://www.fengyuwen.top:1800/usr/themes/hongse/video/cv.mp4" loop="" muted="" autoplay controls></video>首页文章无标题
把下面的代码放到主题后台设置中的
开发者设置-自定义CSS中,最后保存设置即可.index-post-title { font-size: 0px; }首页文章标题居中
把下面的代码放到主题后台设置中的
开发者设置-自定义CSS中,最后保存设置即可.panel h2{
text-align: center;
}
.post-item-foot-icon{
text-align: center;
}JS实现复制内容自动添加版权信息
把下面的代码放到主题后台设置中的
开发者设置-自定义JavaScript中,然后在PJAX回调函数设置中输入上述函数名 addLink();,最后保存设置即可。function addLink() {
var body_element = document.body;
var selection;
var blogName = '小冯的博客';
selection = window.getSelection() ? window.getSelection() : document.selection.createRange().text;
if (window.clipboardData) {
var pagelink ="<br/>---------------------<br/>本文来源:"+blogName+"<br/>原文链接:"+document.location.href+"";
var copyText = selection + pagelink;
window.clipboardData.setData ("Text", copyText);
return false;
} else {
var pagelink = "<br/>---------------------<br/>本文来源:"+blogName+"<br/>原文链接:"+document.location.href+"";
var copyText = selection + pagelink;
var newDiv = document.createElement('div');
newDiv.style.position ='absolute';
newDiv.style.left ='-99999px';
body_element.appendChild(newDiv);
newDiv.innerHTML = copyText;
selection.selectAllChildren(newDiv);
window.setTimeout(function() {
body_element.removeChild(newDiv);
},0);
}
}
document.oncopy = addLink;轮播图修改
把下面的代码放到主题后台设置中的
开发者设置-首页列表最前方广告中,最后保存设置即可<video class="border-radius-6" src="$itemCover" data-holder-rendered="true" loop="" muted="" autoplay controls>头图标题显示/隐藏
把下面的代码放到主题后台设置中的
开发者设置-自定义CSS中,最后保存设置即可.panel h2{
text-align: center;
}
.post-item-foot-icon{
text-align: center;
}
.index-post-title { font-size: 0px; }文章中嵌入网页
比如在独立页面上放置一个单独的网页页面,使用方法:在文章中添加代码即可,将链接地址修改为你需要展示的网站地址
<iframe align="center" width="100%" height="740px" src="链接地址" frameborder="no" border="0" scrolling="no" marginwidth="0" marginheight="0" ></iframe>
1 条评论
测试