This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Wrapper function for add_theme_support setup | |
function mytheme_setup_theme_supported_features() { | |
// Add theme support for wide align blocks | |
add_theme_support( 'align-wide' ); | |
} | |
// Hook wrapper function into WP once theme is ready |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_theme_support( 'align-wide' ); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Sets up theme defaults and registers support for various WordPress features. | |
* | |
* Note that this function is hooked into the after_setup_theme hook, which | |
* runs before the init hook. The init hook is too late for some features, such | |
* as indicating support for post thumbnails. | |
*/ | |
function twentyseventeen_setup() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.entry-content > *:not( .alignwide ):not( .alignfull ) { | |
max-width: 50%; | |
width: 50%; | |
margin-left: auto; | |
margin-right: auto; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.alignwide { | |
max-width: 75%; | |
width: 75%; | |
margin-left: auto; | |
margin-right: auto; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.site-content .wrap, | |
.has-sidebar:not(.error404) #primary, | |
.has-sidebar #secondary, | |
body:not(.has-sidebar):not(.page-one-column) .page-header, | |
body.has-sidebar.error404 #primary .page-header, | |
body.page-two-column:not(.archive) #primary .entry-header, | |
body.page-two-column.archive:not(.has-sidebar) #primary .page-header, | |
.blog:not(.has-sidebar) #primary article, | |
.archive:not(.page-one-column):not(.has-sidebar) #primary article, | |
.search:not(.has-sidebar) #primary article, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body.page-two-column:not(.archive) #primary .entry-header, | |
.entry-content > *:not( .alignwide ):not( .alignfull ) { | |
max-width: 50%; | |
width: 50%; | |
margin-left: auto; | |
margin-right: auto; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.alignwide { | |
max-width: 75%; | |
width: 75%; | |
margin-left: auto; | |
margin-right: auto; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media only screen | |
and (max-width: 480px) { | |
body.page-two-column:not(.archive) #primary .entry-header, | |
.entry-content > *:not( .alignwide ):not( .alignfull ) { | |
max-width: 75%; | |
width: 75%; | |
} | |
.alignwide { | |
max-width: 90%; | |
width: 90%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Add bottom margin to cover images */ | |
.wp-block-cover-image { | |
margin-bottom: 1rem; | |
} |