昨天调了一下wordpress 的模板,改了一下CSS文件等,色调及模块基本达到自己的要求,本来还想系统的了解了解wordpress的各个模块,但教程真看不下去,还是自己动手改来的轻松,如果只要改模板文件的话,进入 appearance-theme editor 里面各个页面的文件及CSS文件,按自己的需求改就可以了。
【本来只想记录下来自己觉得梳理的还可以的一句免责,结果总是发不出去,CSDN是要求高质量的,对我这种只想自由的记录历程的用户是不友好的,哈哈哈,那就再延续一下。】
1、把网站的色调修改成了莫兰迪灰白和绿,看着顺眼了很多,为什么修改,还有原来的那个模板首页的列表页每条信息是有概述图的,概述没展示出来,我可能对那个模板也不太满意,就一直没改,换了简单大方的,顺便调了色调。
修改css/main.css里的.site-header 这个属性:
.site-header{position:relative;z-index:60;background-color:#fff;
颜色由#fff 变为 #7B8B71 莫兰迪绿,修改成功。
2、去掉了首页右侧的后台登录链接模块
首页 sidebar.php 删除DIV
if ( is_home() || is_page() ) :
?>
<div class="widget">
<h3><span><?php esc_html_e( 'Meta', 'diagnoseo' ); ?></span></h3>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<?php wp_meta(); ?>
</ul>
</div>
<?php endif; ?>
3、去掉文章页的作者tag
修改 single.php
去除 作者索引和RELATED POSTS,LATEST POSTS(最后考虑到文章增多保留了相关和最近)
去掉admin
<div class="post-author">
<?php $author_id = get_the_author_meta( 'ID' ); ?>
<span class="img-border"><?php echo get_avatar( $author_id ); ?></span>
<div class="post-author-info">
<h4 class="post-author-name">
<a href="<?php echo esc_url( get_author_posts_url( $author_id ) ); ?>">
<?php the_author(); ?>
</a>
</h4>
<p class="post-author-description"><?php echo wp_kses_post( get_the_author_meta( 'description' ) ); ?></p>
</div>
</div>
色号备注:#7B8B71 绿 #E0D8D8 灰白
4、加个免责
今天打算给网站加个免责信息,虽然是自己梳理的,来原创的一些知识并不属于自己,所以组织了一下语言:
“All resources of this site are collected from the network, only for learning reference, Copyright owned by the original author.”
“本网站所有资源来源于网络,仅用于学习参考,版权归原作者所有。”