WordPress Twenty Seventeen modifications

The correct way is to work with Child Themes instead of the following hacks. To disable WordPress editor from inserting annoying <p> for new lines, add this in functions.php:
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );
To remove the “Proudly powered by WordPress”, comment out the line that fetches this template part in footer.php:
//get_template_part( 'template-parts/footer/site', 'info' );
To make post’s primary content slightly wider at the expense of the sidebar (58%:36% => 65%:31%), simply add more CSS in Appearance => Customize: (or alternatively modify directly these rows in style.css)
@media screen and (min-width: 48em) {
.has-sidebar:not(.error404) #primary { width: 65%; }
@media screen and (min-width: 48em) {
.has-sidebar #secondary { width: 31%; }

Leave a Reply

Your email address will not be published. Required fields are marked *