Skip to content

Commit

Permalink
Pattern Creator: Add theme.json to theme to enable appearance tools.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryelle committed Mar 2, 2022
1 parent 0cc0d56 commit 19c802e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 0 additions & 5 deletions public_html/wp-content/themes/pattern-directory/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,8 @@
* as indicating support for post thumbnails.
*/
function setup() {
add_theme_support( 'post-thumbnails' );

// Add gutenberg styling supports.
add_theme_support( 'align-wide' );
add_theme_support( 'custom-spacing' );
add_theme_support( 'custom-line-height' );
add_theme_support( 'experimental-link-color' );

// The parent wporg theme is designed for use on wordpress.org/* and assumes locale-domains are available.
// Remove hreflang support.
Expand Down
9 changes: 9 additions & 0 deletions public_html/wp-content/themes/pattern-directory/theme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"version": 2,
"settings": {
"appearanceTools": true,
"color": {
"link": true
}
}
}

0 comments on commit 19c802e

Please sign in to comment.