wordpress-修改26主题代码记录

修改twenty-sixteen主题代码记录

一、添加了底部日期和版权信息

需要修改 foot.php 文件

<div class="site-info">
				<?php
					/**
					 * Fires before the twentysixteen footer text for footer customization.
					 *
					 * @since Twenty Sixteen 1.0
					 */
					do_action( 'twentysixteen_credits' );
				?>
		
				<span class="site-title">
		© Copyright 2017 -&nbsp;<?php esc_attr_e(date('Y')); ?> &nbsp;|&nbsp;
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
		|&nbsp;&nbsp;All Rights Reserved		
				</span>
				<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentysixteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentysixteen' ), 'WordPress' ); ?></a>
				
			</div><!-- .site-info -->

二、添加了额外的主题的css样式

不需要修改文件,只需要在 appearance 的 customize里面的 additional css 里面添加就行了

@media screen and (min-width: 61.5625em){

body:not(.search-results) article:not(.type-page) .entry-content {
		float: right;
		width: 100%;
	}
	
}

@media screen and (min-width: 56.875em)
{
.sidebar {
    margin-left: 72%;
    width: 28%;
}
}
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments