站点图标 度崩网-几度崩溃

riproV6.6.5首页添加最新文章动态轮播及资源统计美化模块[ripro美化教程]

riproV6.6.5首页添加最新文章动态轮播及资源统计美化模块[ripro美化教程]

一、找到wp-content/themes/ripro/inc/codestar-framework/options/目录下找到options.theme.php并搜索关键词“最新文章模块”找到以下代码:

'lastpost' => '最新文章模块',

在上方代码中添加如下代码

'census' => '滚动统计',
注意:仅测试原版RiPro主题,未测试子主题(二开),本教程更加站壳网修改而成!

二、找到wp-content/themes/ripro/parts/home-mode/将附件内的census.php上传进去

三、找到wp-content/themes/ripro/assets/css/目录下找到diy.css 并将下方css内容整体复制进去并保存(注意修改css中的图片链接)

四、找到wp-content/themes/ripro/目录下找到functions.php并将附件内的functions.php内容整体复制进去并保存

五、找到 /wp-content/themes/ripro/目录下找到footer.php并将附件内的footer.php内容整体复制进去并保存

六、找到/wp-content/themes/ripro/assets/images/目录并将附件内的images所有文件上传

效果演示

 

/*网站首页添加资源统计·开始*/
.fa-volume-up:before {
    content: "f028";
    color: #ff9800;
}
.deanggwrap {
	width: 100%;
	padding-top: 30px;
	padding-right: 40px;
    background: #f6f6f6;
	display: flex;
	justify-content: center;
	align-items: center;
}
.deangg {
	width:1180px;
	float:left;
	/*height:30px;*/
	line-height:30px;
	background:#ffffff;
	margin-right: -399px;
	padding:8px 0;
	border-radius:68px;
}
@media (max-width:767px) {
	.deangg {
		display: none
	}
}
.deanggspan {
	float:left;
	width:105px;
	margin:0 auto;
	color:#333;
	font-size:14px;
}
.deanggspan i {
	display:block;
	float:left;
	font-size:18px;
	color:#f60;
	margin-top:7px;
	margin-left:15px;
	margin-right:6px;
}
.deanggspan span {
	display:block;
	float:left;
	color: #ff9800;
}
.deangg b {
	height:12px;
	margin-top:9px;
	width:1px;
	display:block;
	float:left;
	background:#a8a8a8;
}
.deanggc {
	float:left;
	width:730px;
	margin-left:20px;
}
.announce-wrap {
	height:30px;
	overflow:hidden;
}
/*盾给网dungei.net美化*/
.deanggc ul {
	}
.deanggc ul li {
	font-size:14px;
	width:730px;
	display:block;
	clear:both;
	height:30px;
	/* line-height:30px;*/
	
}
.deanggc ul li a {
	font-weight: 400;
	color:#2575fc;
	float:left;
}
.deanggc ul li a:hover {
	color:#2575fc;
	text-decoration: blink;
}
.deanggc ul li span {
	float:right;
	color:#2575fc;
	font-size:12px;
	width:255px;
}
.deanchart {
	float:right;
	height:44px;
	width:400px;
	color:#fff;
	margin-left: -38px;
}
.deanchart ul {
	width: 460px;
	margin: 0;
	padding: 0;
	word-wrap: break-word;
}
.deanchart ul li {
	float:left;
	height:100%;
	margin-right:20px;
	font-size:14px;
}
.deanchart ul li i {
	display:block;
	float:left;
	width:35px;
	height:35px;
	margin-top:8px;
	background:url(../images/icon5.png) 0 0 no-repeat;
}
/*盾给网美化*/
.deanchart ul li.deanchart2 i {
	background:url(../images/icon2.png) 0 0 no-repeat;
}
.deanchart ul li.deanchart3 i {
	background:url(../images/icon3.png) 0 0 no-repeat;
}
.deanchart ul li.deanchart4 i {
	background:url(../images/icon1.png) 0 0 no-repeat;
}
.deanchart ul li.deanchart5 i {
	background:url(../images/icon5.png) 0 0 no-repeat;
}
.deanchartdiv {
	float:left;
	margin-left:8px;
	margin-top:6px;
	text-align:center;
}
.deanchartdiv em {
	font-size:12px;
	color:#999;
	font-style: inherit;
}
.deanchartdiv span {
	font-size:12px;
	color:#999;
}
.deanchartdiv a {
	font-size:12px;
	color:#999;
}
.clear{
	margin-top: -5px;
}
.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.aligncenter p.wp-caption-text {
	display: block;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}
/*网站首页添加资讯统计·盾给网美化结束*/