Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update empty theme to use Gutenberg alignments #233

Merged
merged 5 commits into from
Mar 19, 2021
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 0 additions & 79 deletions emptytheme/assets/alignments-front.css

This file was deleted.

4 changes: 3 additions & 1 deletion emptytheme/block-templates/singular.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

<!-- wp:post-title /-->

<!-- wp:post-content /-->
<!-- wp:group {"layout":{"inherit":true}} -->
<div class="wp-block-group"><!-- wp:post-content /--></div>
<!-- /wp:group -->
11 changes: 3 additions & 8 deletions emptytheme/experimental-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,9 @@
"fontFamilies": [ ],
"fontSizes": [ ]
},
"custom": {
"width": {
"default": "840px",
"wide": "1100px"
},
"margin": {
"horizontal": "14px"
}
"layout": {
"contentSize": "800px",
"wideSize": "1000px"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should match the widths used above, right? 840px and 1100px?

}
}
},
Expand Down
5 changes: 1 addition & 4 deletions emptytheme/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@ function emptytheme_support() {
* Enqueue scripts and styles.
*/
function emptytheme_scripts() {

// Enqueue theme stylesheet.
wp_enqueue_style( 'emptytheme-style', get_template_directory_uri() . '/style.css', array(), wp_get_theme()->get( 'Version' ) );

// Enqueue alignments stylesheet.
wp_enqueue_style( 'emptytheme-alignments-style', get_template_directory_uri() . '/assets/alignments-front.css', array(), wp_get_theme()->get( 'Version' ) );
}

add_action( 'wp_enqueue_scripts', 'emptytheme_scripts' );