小白日主题美化教程

为主题美化提供如下教程因为比较懒所以大多是替换,部分说明比较简单,如有不明白之处请加qq393425858(注明来意,一律免费该不收费)查看本文章的麻烦登录一下为本站留下一位用户,哈哈哈!!!

注:个别修改后样式不合适的请联系我,整理的比较随意

问:为什么要把css样式放到后台而不直接改stye.css文件?

答:该文件当然可以实现功能,但是放到后台有利于主题更新,在更新主题时省去修改样式的时间

导航颜色修改

第一步:打开日主题的 inc/options.theme.php文件,找到第153行后面添加:

array(
‘id’ => ‘is_header_white’,
‘type’ => ‘switcher’,
‘title’ => ‘顶部导航白色背景’,
‘label’ => ,
‘default’ => false,
),

添加后,刷新后台设置框架的“顶部设置”发现多了一项(默认是关闭状态):
1589014717-7541ea77aa074aa

第二步:打开日主题目录下的 header.php,把第18行 改成

<header class="header <?php echo $navclass = (_hui('is_header_white')) ? 'white' : '' ; ?>">

第三步:打开日主题 style.css文件

找到下面对应的样式并修改如下:

.header.white .site-navbar>ul>li>a{color:#555;}

增加一行:

.header.white .wel .wel-item-btn>a{color:#fff}

搜索栏美化

/rizhuti/home-module/module-banner.php(整页替换)

<?php if (!$paged || $paged===1) { ?>
<div class=“focusbox” id=“focsbox-true” style=“background-image: url(<?php echo _hui(‘search_bgimg’)?>);background-attachment: fixed;”>
<div class=“focusbox-image-overlay”></div>
<div class=“container”>
<h3 class=“focusbox-title”><?php echo _hui(‘banner_title’); ?></h3>
<form class=“form-inline” id=“fh5co-header-subscribe” method=“get” action=“<?php echo esc_url( home_url( ‘/’ ) ) ?>”>
<div class=“form-group”>
<input type=“text” class=“form-control” id=“email” name=“s” placeholder=“输入要查找关键字”>
<button type=“submit” class=“btn btn-default” style=” top: 7px; right: 12px; border-radius: 64px !important; background: #ffffff;padding: 8px 12px;color: #3b3b3b;background: #fafcff;”><i class=“iconfont”></i></button>
<div class=“tag_cloud” style=“text-align: left;margin-top: 10px;”><a href=“https://www.apeyizhan.com/archives/tag/建站/” class=“tag-cloud-link tag-link-35 tag-link-position-1” style=“font-size: 14px;”>建站</a>
<a href=“https://www.apeyizhan.com/archives/tag/渗透/” class=“tag-cloud-link tag-link-9 tag-link-position-2” style=“font-size: 14px;”>渗透</a>
<a href=“https://www.apeyizhan.com/archives/tag/破解/” class=“tag-cloud-link tag-link-13 tag-link-position-3” style=“font-size: 14px;”>破解</a>
<a href=“https://www.apeyizhan.com/archives/tag/PHP/” class=“tag-cloud-link tag-link-3 tag-link-position-4” style=“font-size: 14px;”>PHP</a>
<a href=“https://www.apeyizhan.com/archives/tag/工具/” class=“tag-cloud-link tag-link-5 tag-link-position-5” style=“font-size: 14px;”>工具</a>
<a href=“https://www.apeyizhan.com/archives/tag/WordPress主题/” class=“tag-cloud-link tag-link-15 tag-link-position-6” style=“font-size: 14px;”>WordPress主题</a>
<a href=“https://www.apeyizhan.com/archives/tag/源码/” class=“tag-cloud-link tag-link-8 tag-link-position-7” style=“font-size: 14px;”>源码</a>
<a href=“https://www.apeyizhan.com/archives/tag/小程序/” class=“tag-cloud-link tag-link-8 tag-link-position-7” style=“font-size: 14px;”>小程序</a></div>
</div>
</form>
</div>
<style>.tag_cloud a {margin-left: 10px;}</style>
</div>
<?php } ?>

2、在后台自定义css中加入如下样式:

/** 搜索banner */
.tag_cloud a {
color: #8a9197!important;
}
.tag_cloud a:hover {
color: #f0f4f8!important;
}
.focusbox .form-group{
height: 60px;
background: #fafcff;
border-radius: 4px;
border: 2px solid #ebeef7;
}
#fh5co-header-subscribe button {
top: –2px;
right: –2px;
padding: 18px 30px;
}
.form-group input{
height: 100%!important;
background: none!important;
font-size: 12px!important;
}

3、最终效果
1589014718-cff188fb6756669

分类推荐美化

最终目标:

1589014720-016d5cd691f2fe2
1、/rizhuti/home-module/module-catbox.php(整页替换)

<?php if (!$paged || $paged===1) {
$module_catbox = _hui( ‘catbox’ );
?>
<section class=“container-white home1”>
<div class=“container”>
<div class=“row block-wrapper”>
<?php if (!$module_catbox) { ?>
<h2 style=” text-align: center; margin: 0 auto; padding: 60px; “>请前往后台新分类推荐模块!</h2>
<?php }else{ ?>
<?php foreach ($module_catbox as $key => $value) { ?>
<?php if ($value[‘cat_id’]) { ?>
<div class=“cms-category”>
<div class=“category-tile”><div class=“category-tile__wrap”>
<div class=“background-img” style=“background-image:url(<?php echo get_term_meta( $value[‘cat_id’], ‘cat-img’, true ) ?>)”></div>
<div class=“category-tile__inner”>
<div class=“category-tile__text inverse-text”>
<?php
$home_special_catid= $value[‘cat_id’];
$home_special__name = get_category($home_special_catid)->name;
$home_special__link = get_category_link( $home_special_catid );
$home_special__num = get_category($home_special_catid)->count;
echo ‘<a class=”category-tile__name cat-theme-bg” href=”‘.$home_special__link.‘” title=”查看全部文章” style=”background: #1290de;”>’.$home_special__name.‘</a>’;
echo ‘<div class=”category-tile__description”>’.$home_special__num.‘<span class=”work-num”>’.‘个’.‘</span></div>’;
?>
</div>
</div>
</div>
</div>
<div class=“work-box”>
<?php
$args = array(
‘cat’ =>$home_special_catid, //自定义文章类型名称
‘showposts’ => 4, //输出的文章数量,这个可以是缺省值,不用设置
);
$my_query = new WP_Query($args);
if ($my_query->have_posts()) {
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<div class=“work”>
<a class=“FreeUID” href=“<?php the_permalink() ?> “ title=“<?php the_title() ?> “ ><img src=“<?php the_post_thumbnail_url(‘thumbnail’) ?>” alt=“<?php the_title() ?>”></a>
</div>
<?php endwhile;
wp_reset_query(); //重置 query 查询
} ?>
</div>
</div>
<?php } ?>
<?php } ?>
<?php } ?>
</div>
</div>
</section>
<?php } ?>

2、在后台自定义css中加入样式

.cms-category .category-tile {
box-shadow: 04px 10px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .08)!important;
border-radius: 8px!important;
background: #fff!important;
}
.cms-category .category-tile__wrap {
position: relative!important;
margin: 0!important;
border-radius: 4px!important;
height: 240px!important;
}
.cms-category .category-tile__inner {
position: relative!important;
display: -webkit-box!important;
display: -moz-box!important;
display: box!important;
display: -webkit-flex!important;
display: -moz-flex!important;
display: -ms-flexbox!important;
display: flex!important;
min-height: 240px!important;
-webkit-box-align: center!important;
-moz-box-align: center!important;
box-align: center!important;
-webkit-align-items: center!important;
-moz-align-items: center!important;
-ms-align-items: center!important;
-o-align-items: center!important;
align-items: center!important;
-ms-flex-align: center!important;
}
.cms-category .category-tile–sm .category-tile__inner {
min-height: 120px!important;
}
.cms-category .category-tile .link-overlay {
z-index: 1!important;
}
.cms-category .category-tile__text {
position: absolute!important;
padding: 20px 20px 15px!important;
width: 100%!important;
text-align: center!important;
top: –10px!important;
}
.cms-category .category-tile__name {
display: inline-block!important;
max-width: 100%!important;
border-radius: 2px!important;
color: #5f6367!important;
background: rgba(0,0,0,0)!important;
text-transform: uppercase!important;
font-size: .8571rem!important;
-webkit-transition: all .15s ease-out 0s!important;
-moz-transition: all .15s ease-out 0s!important;
transition: all .25s ease-out 0s!important;
}
a.category-tile__name.cat-theme-bg:hover {
color: #1789fa!important;
}
.cms-category .category-tile__description {
color: #ffc01f!important;
font-family: DINBold, Arial, Microsoft Yahei, 5FAE8F6F96C59ED1, Hiragino Sans GB, 5B8B4F53!important;
font-size: 28px!important;
margin-top: –7px!important;
font-weight: 700!important;
}
.cms-category .category-tile:hover .background-img:after {
opacity: .8!important;
}
.background-img {
position: absolute!important;
top: 0!important;
right: 0!important;
bottom: 0!important;
left: 0!important;
overflow: hidden!important;
}
.background-img,
.has-cover-bg-img {
border-radius: 4px!important;
background-position: 50% 50%!important;
background-size: cover!important;
background-repeat: no-repeat!important;
background-attachment: scroll!important;
top: 70px!important;
bottom: 60px!important;
}
.cms-category .background-img:after {
position: absolute!important;
top: 0!important;
right: 0!important;
bottom: 0!important;
left: 0!important;
width: 100%!important;
background-color: #001529!important;
content: !important;
opacity: .6!important;
-webkit-transition-timing-function: ease!important;
-moz-transition-timing-function: ease!important;
transition-timing-function: ease!important;
-webkit-transition-duration: .3s!important;
-moz-transition-duration: .3s!important;
transition-duration: .3s!important;
-webkit-transition-property: all!important;
-moz-transition-property: all!important;
transition-property: all!important;
}
.cms-category {
margin-right: 20px!important;
width: 25%!important;
position: relative!important;
}
.cms-category:nth-child(4n) {
margin-right: 0!important;
}
span.work-num {
font-size: 12px!important;
margin-left: 8px!important;
color: #5f6367!important;
}
.work-box {
display: flex!important;
position: absolute!important;
bottom: 0!important;
}
.work {
flex: 1 1 25%!important;
margin: 4px!important;
overflow: hidden!important;
-webkit-transition: all .3s ease!important;
-moz-transition: all .3s ease!important;
-o-transition: all .3s ease!important;
transition: all .3s ease!important;
}
.work-box .work img {
height: 50px!important;
width: 100%!important;
object-fit: cover!important;
border-radius: 4px!important;
border: 1px solid #f5f3f3!important;
}
.work:hover {
transform: translateY(-6px)!important;
-webkit-transform: translateY(-6px)!important;
-moz-transform: translateY(-6px)!important;
box-shadow: 0 6px 16px10px rgba(0, 36, 100, .3)!important;
-webkit-box-shadow: 0 6px 16px10px rgba(0, 36, 100, .3)!important;
-moz-box-shadow: 0 6px 16px10px rgba(0, 36, 100, .3)!important;
-webkit-transition: all .3s ease!important;
-moz-transition: all .3s ease!important;
-o-transition: all .3s ease!important;
transition: all .3s ease!important;
}
.cms-category {
-webkit-transition: all .3s ease!important;
-moz-transition: all .3s ease!important;
-o-transition: all .3s ease!important;
transition: all .3s ease!important;
}
.cms-category:hover {
transform: translateY(-6px)!important;
-webkit-transform: translateY(-6px)!important;
-moz-transform: translateY(-6px)!important;
box-shadow: 0 26px 40px24px rgba(0, 36, 100, .3)!important;
-webkit-box-shadow: 0 26px 40px24px rgba(0, 36, 100, .3)!important;
-moz-box-shadow: 0 26px 40px24px rgba(0, 36, 100, .3)!important;
-webkit-transition: all .3s ease!important;
-moz-transition: all .3s ease!important;
-o-transition: all .3s ease!important;
transition: all .3s ease!important;
}

分类CMS标题美化

1、首先还是加入样式:

<link rel="stylesheet" href="//at.alicdn.com/t/font_1169899_l2kpvs37ys.css">
/**头标签*/
.section-info {
padding: 10px 15px 60px 15px!important;
}
.section-info h2 {
font-weight: 400!important;
font-size: 1.5rem!important;
background: #fff;
}
.section-info h2 {
float: left!important;
text-align: left!important;
padding: 10px;
border-radius: 4px;
}
.section-info .postmode-description {
letter-spacing: 2px!important;
color: #9E9E9E!important;
position: relative!important;
top: 17px!important;
left: 18px!important;
float: left!important;
}
/**追加的标签*/
.hh_home_zuixinlist_title {
float: right;
padding-top: 4px;
}
.hh_home_zuixinlist_title_item {
float: left;
display: block;
margin-left: 10px;
padding: 10px;
border-radius: 4px;
background: #fff;
}
.kan {
font-family: “kan” !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.kanmingcheng:before {
position: relative;
top: 1.5px;
}

2、/rizhuti/home-module/module-postlist.php(还是全部替换吧)

<!– 最新文章 –>
<section class=“container”>
<?php if ((!$paged || $paged===1)) { ?>
<div class=“section-info”>
<h2 class=“postmodettitle”><span><i class=“icon-new”></i><?php echo _hui(‘mo_postlist_title’) ?></h2>
<div class=“postmode-description”><?php echo _hui(‘mo_postlist_desc’) ?></div>
<div class=“hh_home_zuixinlist_title”>
<a href=“/hot” target=“_blank” class=“hh_home_zuixinlist_title_item hh_hide”><i class=“kan kanicon”></i>热门精选</a>
<a href=“/tags” target=“_blank” class=“hh_home_zuixinlist_title_item hh_hide”><i class=“kan kanmingcheng”></i>素材标签</a>
<a href=“/likes” target=“_blank” class=“hh_home_zuixinlist_title_item hh_hide”><i class=“kan kantubiao”></i>点赞最多</a>
</div>
</div>
<?php } ?>
<?php
$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 0;
$args = array(
‘ignore_sticky_posts’ => 0, //1改为0 置顶生效,默认不生效是怕和下面的CMS模块文章太多重复,不需要刻意不理 不是BUG
‘paged’ => $paged
);
$mo_postlist_no_cat = _hui(‘mo_postlist_no_cat’);
if($mo_postlist_no_cat){
// var_dump(implode($mo_postlist_no_cat, ‘,-‘));
$args[‘cat’] = ‘-‘.implode($mo_postlist_no_cat, ‘,-‘);
}
query_posts($args);
get_template_part( ‘excerpt’, ‘home’ );
?>
</section>
<!– 最新文章end –>

最终效果:
1589014722-63176d176cac9f3

分类CMS列表美化

1、加入小标签:效果如下

1589014723-45f0cf0f6415772
/rizhuti/excerpt-item.php

echo ''.get_the_tag_list('<p class="desc"><span>','</span><span>','</span></p>').'';

在后台自定义css中加入样式:

/** 标签字体 */
.excerpt>p.desc {display: flex;flex-wrap: wrap;align-content: flex-start;height: 36px;padding: 0 10px 0 10px;overflow: hidden;text-overflow: ellipsis;}
.excerpt>p.desc>span:before {content: ;position: absolute;width: 6px;height: 6px;border: 2px solid #b4c8ff;border-radius: 50%;left: 0px;top: 34%;}
.excerpt>p.desc>span {padding-left: 8px;margin-right: 10px;font-size: 12px;position: relative;line-height: 18px;}
.excerpt>p.desc>span>a {color: #bebebe;transition: .25s;}
@media (max-width: 544px)
.excerpt>p.desc {
padding: 0 !important;
}
.excerpt>p.desc>span>a:hover {color: #118cfe !important;}

分页按钮美化

在后台自定义css中加入样式:

/**分页*/
.pagination ul li.next-page a {
background: linear-gradient(-125deg,#0295f9 0%, #2f49fd 100%)!important;
color: #fff!important;
}
.pagination ul li a, .pagination ul li span {
display: inline-block!important;
padding: .35rem 1.5rem!important;
border-radius: 16px!important;
}
.pagination ul li.active span {
background-color: #353535!important;
color: #fff!important;
}

关于我们美化

/rizhuti/home-module/module-about.php(整页替换)
1589014726-eee019b818b4be3

<style>span.counter {
font-size: 35px;
font-weight: 700;
color: #fff;
background: #1890ff;
padding: 5px 20px;
border-radius: 4px;
}
.home2 h3 {
margin-bottom: 0;
padding: 1.8rem;
color: #fff;
text-align: center;
}
.home2 p {
margin-bottom: 1.8rem;
text-align: center;
font-size: 30px;
}
</style>
<?php if ((!$paged || $paged===1)) { ?>
<!– about –>
<section class=“container-white home2” style=“background-image: url(https://ws3.sinaimg.cn/large/005BYqpgly1g1ykeok8x2j31hc0u04a3.jpg)”>
<div class=“container”>
<h3><?php echo _hui(‘about_title’) ?></h3>
<p>目前为止我们有 <span class=“counter”><?php $users = $wpdb->get_var(“SELECT COUNT(ID) FROM $wpdb->users”); echo $users; ?></span> 位会员,还有 <span class=“counter”><?php echo $publish_posts = wp_count_posts()->publish;?></span> 个精品资源!</p>
<a href=“<?php echo _hui(‘about_btn_href’) ?>” class=“btn btn-wiht”><?php echo _hui(‘about_btn’) ?></a>
</div>
</section>
<?php } ?>

修改前:

1589014727-6b1930ec7b60364

修改后:

1589014729-0619ccd5c60a757

底部加入友情链接

/rizhuti/footer.php/加入如下代码:

<div class=“col l12 m12 s12”>
<ul class=“flinks-text”>
<span class=“flinks” style=“color:#555; font-weight:500”>友情链接:</span>
<?php wp_list_bookmarks(‘&categorize=0’); ?>
</ul>
</div>

增加样式:

.border-top: 1px solid rgba(172, 172, 172, 0.1);
.flinks-text{margin-top: 10px;text-align: left;}
.flinks-text>li{float: left;margin-left: 10px;}
.flinks{float: left;font-weight: 400}
.excerpt-freeuid{margin-bottom: 2%;padding: 0;overflow: hidden;}
.excerpt-freeuid h2 {padding: 0 10px 0 10px;text-shadow: –1px 1px 0 rgba(0,0,0,.1);font-weight: 300;}
.excerpt-freeuid>p.desc {padding: 0 10px 0 10px;}
.excerpt-freeuid>footer{padding: 0 10px 10px 10px;}
.linkcat>:first-child{display: none;}
.blogroll>*{float:left;margin-right: 14px;}
.footer-links {
padding: 20px 0;
border-top: 1px solid rgba(172, 172, 172, 0.1);
}

个人中心美化

先来看效果:

1589014731-97a517acbf8abe9

这个样式比较多比较麻烦所以替换吧/rizhuti/pages/user.php

<?php
/**
* template name: 用户中心(已购买记录)
*/
date_default_timezone_set(‘Asia/Shanghai’);
if(!is_user_logged_in()){
header(“Location:”.home_url(‘login’));
exit();
}
get_header();
global $current_user;
$user_downData = this_vip_downum();
?>
<style>
.test{
border-radius: 15px;
background: #F8F8F8;
height:190px
}
.hh_p1 span {
position: relative;
top: –4px;
margin: –10px 0 0 10px;
padding: 0 10px;
padding: 1px 10px;
height: 24px;
border-radius: 100px;
border-style:solid;
border-width:1px;
border-color:#ff8a00;
color: #ff8a00;
font-weight: 700;
font-size: 14px;
cursor: default;
}
.hh_usertop {
margin-left: 48px;
padding-top: 40px;
padding-left: 15px;
height: 120px;
max-width: 1380px;
}
.hh_usertop .user_av {
padding: 10px;
}
.hh_usertop .user_av img {
float: left;
width: 100px;
height: 100px;
border-radius: 5px;
}
.hh_usertop_right {
float: left;
margin-left: 20px;
}
.hh_p1 {
position: relative;
top: –6px;
color: #595959;
font-weight: 300;
font-size: 24px;
line-height: 1;
}
.hh_p2 {
display: block;
margin: 0;
margin-top: –5px;
padding: 0;
color: gray;
font-weight: 300;
font-size: 18px;
}
.hh_p3 {
margin-top: 10px;
}
.hh_ziliao {
position: relative;
top: 86px;
text-align: right;
z-index: 1;
}
.hh_ziliao .hh_user_vips {
position: relative;
top: 17px;
float: right;
padding: 17px 30px;
border-radius: 4px;
background: #1890ff;
color: #fff;
font-weight: 700;
font-size: 12px;
}
.kan {
font-family: “kan” !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.hh_ziliao .upload {
float: right;
display: block;
width: 170px;
text-align: center;
box-shadow: none;
border: none;
background-color: transparent;
}
.btn-default {
color: #999;
}
.btn {
display: inline-block;
padding: .75rem 1.5rem;
border-radius: 4px;
font-weight: 300;
font-size: .75rem;
line-height: 2;
}
.hh_ziliao #udptips {
position: relative;
top: 5px;
display: block;
padding: 13px 20px;
border-radius: 4px;
background: linear-gradient(-180deg, #3fc67c 2%, #2aa461 98%);
color: #fff;
font-weight: 600;
}
.hh_ziliao input[type=file] {
position: relative;
top: –40px;
left: 0px;
z-index: 99;
width: 80px;
opacity: 0;
cursor: pointer;
}
input[type=file] {
display: block;
}
div.user_row{
background-color: #fff;
}
.user_row {
position: relative!important;
top: 40px!important;
padding: 18px 30px 40px 30px;
height: 60px!important;
margin-top: –42px;
}
dl, ol, ul {
margin-top: 0!important;
margin-bottom: 0!important;
padding-left: 0!important;
}
.user_row li a {
display: block!important;
padding: 5px 0!important;
color: #7b797b!important;
}
.user_row li {
float: left!important;
margin-right: 80px!important;
}
.user_row ul li a.active {
border-bottom: 2px solid #1990fc;
color: #fff;
}
.user_content {
padding-bottom: 80px;
}
section.container.user_content{
background-color: #fff;
}
.container {
position: relative;
margin: 0 auto;
max-width: 1310px;
}
.one{
background-color: #777;
display: inline;
padding: .2em .6em .3em;
font-size: 75%;
font-weight: 700;
line-height: 1;
color: #fff;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: .25em;
}
.hh_user_vips:hover {
color: #fff!important
}
.iconfont {
font-family: “iconfont” !important;
font-size: 14px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-goumai:before {
margin-right: 5px;
content: “\e67b”;
}
.icon-ziliao:before {
margin-right: 5px;
content: “\e68e”;
}
.icon-taolun1:before {
margin-right: 5px;
content: “\e672”;
}
.icon-mima:before {
margin-right: 5px;
content: “\e605”;
}
.icon-tougao:before {
margin-right: 5px;
content: “\e60a”;
}
.icon-zuopin:before {
margin-right: 5px;
content: “\e68c”;
}
</style>
<section class=“container user_content”>
<div class=“row test”>
<div class=“hh_usertop”>
<div class=“user_av”>
<?php echo _get_user_avatar( $user_email, true, 100); ?>
</div>
<div class=“hh_usertop_right”>
<p class=“hh_p1”>
<?php echo $current_user->nickname;?><span>
<?php echo vip_type_name();?></span></p>
<p class=“hh_p2”>激活闲置素材价值,重构共享设计理念。</p>
<p class=“hh_p3”><span class=“first one”>已下载
<?php echo $user_downData[‘today_down_num’]; ?></span>
<span class=“one”>剩余下载
<?php echo $user_downData[‘over_down_num’]; ?></span></p>
</div>
<div class=“hh_ziliao”>
<form action=“<?php echo get_bloginfo(‘template_url’);?>/action/avatar.php” method=“post” class=“” role=“form”
name=“AvatarForm” id=“AvatarForm” enctype=“multipart/form-data”>
<a class=“btn btn-default btn-sm upload” href=“javascript:void(0)”><span id=“udptips”><i class=“kan kankehudingdanhao”></i>修改头像</span>
<input type=“file” name=“addPic” id=“addPic” accept=“.jpg, .gif, .png” resetonclick=“true”>
</a>
</form>
<script src=“<?php echo get_bloginfo(‘template_url’);?>/js/jquery.form.js”></script>
<a class=“hh_user_vips” href=“/vip_free” etap=“vip”><i class=“kan kanvip1”></i>会员特权</a>
</div>
</div>
</div>
<!– Page Layout here –>
<div class=“row”>
<div class=“col s12 m12 18”>
<div class=“user_row”>
<ul>
<li><a href=“?action=order” class=“order <?php if($_GET[‘action’] == ‘order’) echo ‘active’;?>” etap=“order”><i class=“iconfont icon-goumai”></i>我的订单</a></li>
<li><a href=“?action=info” class=“info <?php if($_GET[‘action’] == ‘info’) echo ‘active’;?>” etap=“info”><i class=“iconfont icon-ziliao”></i>我的信息</a></li>
<li><a href=“?action=comment” class=“comments <?php if($_GET[‘action’] == ‘comment’) echo ‘active’;?>” etap=“comment”><i class=“iconfont icon-taolun1”></i>我的评论</a></li>
<?php if (_hui(‘is_write’)) { ?>
<li><a href=“?action=mywrite” class=“mywrite <?php if($_GET[‘action’] == ‘mywrite’) echo ‘active’;?>” etap=“mywrite”><i class=“iconfont icon-zuopin”></i>我的文章</a></li>
<li><a href=“?action=write” class=“write <?php if($_GET[‘action’] == ‘write’) echo ‘active’;?>” etap=“write”><i class=“iconfont icon-tougao”></i>我要投稿</a></li>
<?php } ?>
<li><a href=“?action=password” class=“password <?php if($_GET[‘action’] == ‘password’) echo ‘active’;?>” etap=“password”><i class=“iconfont icon-mima”></i>修改密码</a></li>
</ul>
</div>
</div>
</div>
<div class=“row”>
<div class=“col s12 m12 18”>
<!– 账户信息 –>
<?php if (isset($_GET[‘action’])) {
$part_action = $_GET[‘action’];
get_template_part( ‘pages/user/’.$part_action);
}else{
get_template_part( ‘pages/user/index’);
} ?>
</div>
</div>
</section>
<?php get_footer(); ?>

会员开通页面整改

会员页面内容比较多,请参考www.s5g.net 如需修改请加qq393425858(切忌是免费)

页面滚动条美化

在后台自定义css顶部加入如下样式:

::-webkit-scrollbar {/*滚动条整体样式*/
width: 10px; /*高宽分别对应横竖滚动条的尺寸*/
height: 1px;
}
::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
background-color: #12b7f5;
background-image: -webkit-linear-gradient(45deg, rgba(255, 93, 143, 1) 25%, transparent 25%, transparent 50%, rgba(255, 93, 143, 1) 50%, rgba(255, 93, 143, 1) 75%, transparent 75%, transparent);
}
::-webkit-scrollbar-track {/*滚动条里面轨道*/
-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
background: #f6f6f6;
}

整站改为会员制

内容比较多,请参考www.s5g.net 如需修改请加qq393425858(切忌是免费)

限制所有登录后才可下载/购买

增加登录判断:/rizhuti/inc/codestar-framework/rizhuti/widgets.rizhuti.php

if (!is_user_logged_in()){
$content_pay=’<a href=“‘.home_url(‘login’).'” class=“btn btn-primary” etap=“login_btn” ><i class=“iconfont”>&#xe66b;</i> 登录后可下载</a>‘;
}else{
}

1589014766-dca85c715d259bc

日主题新增页面模板

增加页面模板后的效果:

1589014769-f258924c499d005

1589014771-032472063047c5e

操作方法如下:在主题根目录下新建php文件内容如下:

<?php /* Template Name: 试验 */ ?>
<?php get_header(); ?>
<?php if( get_post_format() ){ ?>
<?php get_template_part( ‘content’, get_post_format() ); ?>
<?php }else{ ?>
<section class=“container”>
//此处编写HTML即可(直接从div开始,不需要body,导航与顶部都有了,编写内容就好了)
</section>
<?php } ?>
<?php get_footer(); ?>

日主题修改一分钟下载限制

对于资源下载的时间限制,日主题原生是60秒的限制,可能有些网站对于这个限制感觉太严格,废话不多说,上教程:

原来的:

1589014773-9eca146b45f94ae

代码位置:/rizhuti/action/download.php

修改代码位置19行,把60秒修改成你想要限制的时间,站长修改成了10秒
1589014774-6c9ed733ce46b3f

隐藏或删除内页资源类型

个人不太喜欢这类型的选项,所以把它删除了,代码在:/rizhuti/category.php这个文件里面的53-59行

原来效果:

1589014777-b285a67685deb20

修改后效果:

1589014778-025e4d142b024f1

删除代码

1589014779-cdab6cbc824e3dc

免责申明:
1. 本站所有教程、文章或资源分享目的仅供大家学习和交流,可进群讨论!
2. 如有无法查看或链接失效,烦请报告联系管理员处理!
3. 本站无法保证资源或其时效性,恕不接受任何提问。
4. 欢迎大家帮助本站出力,赞助费用仅维持本站的日常运营所需!故不接受任何形式的退款。
5. 搜5G网无法保证文章教程或资源的完善与安全,请自行检测解决。
6. 在本站下载的源码严禁杜绝任何形式的正式商业用途,请去程序官方购买。
本站资源素材仅提供学习的平台,所有资料均来自于网络,版权归原创者所有!本站不提供任何保证,并不承担任何法律责任,如果对您的版权或者利益造成损害,请提供相应的资质证明,我们将于3个工作日内予以删除。本作品采用BY-NC-SA 4.0 《国际知识共享署名许可协议4.0》 进行许可 。
本站所有图片素材均享自由版权下创作共用CC0协议。
搜5G资源网,5G资源网 » 小白日主题美化教程

发表评论

搜5G网永久会员限时优惠中,不限下载,免费更新

立即查看 了解详情