Skip to content

Commit

Permalink
Merge pull request #233 from WordPress/update/emptytheme
Browse files Browse the repository at this point in the history
Update empty theme to use Gutenberg alignments
  • Loading branch information
kjellr authored Mar 19, 2021
2 parents 1a4128f + 7df570d commit e6ba1eb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 92 deletions.
79 changes: 0 additions & 79 deletions emptytheme/assets/alignments-front.css

This file was deleted.

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

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

<!-- wp:post-content /-->
<!-- wp:post-content {"layout":{"inherit":true}} /-->
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": "840px",
"wideSize": "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' );

0 comments on commit e6ba1eb

Please sign in to comment.