Prechádzať zdrojové kódy

Add experimental link color support

Jason Crist 4 rokov pred
rodič
commit
06e3595f9b

+ 9 - 0
morden/experimental-theme.json

@@ -0,0 +1,9 @@
+{
+	"styles": {
+		"root": {
+			"color": {
+				"link": "var(--wp--preset--color--primary)"
+			}
+		}
+	}
+} 

+ 3 - 0
morden/functions.php

@@ -68,6 +68,9 @@ if ( ! function_exists( 'morden_setup' ) ) :
 		if ( function_exists( 'varia_mobile_nav_on_side_setup' ) ) {
 			varia_mobile_nav_on_side_setup();
 		}
+
+		// Add support for experimental link color via Gutenberg: https://github.com/WordPress/gutenberg/blob/master/docs/designers-developers/developers/themes/theme-support.md
+		add_theme_support( 'experimental-link-color' );
 	}
 endif;
 add_action( 'after_setup_theme', 'morden_setup', 12 );

+ 9 - 0
rockfield/experimental-theme.json

@@ -0,0 +1,9 @@
+{
+	"styles": {
+		"root": {
+			"color": {
+				"link": "var(--wp--preset--color--primary)"
+			}
+		}
+	}
+} 

+ 2 - 0
rockfield/functions.php

@@ -64,6 +64,8 @@ if ( ! function_exists( 'rockfield_setup' ) ) :
 			)
 		);
 
+		// Add support for experimental link color via Gutenberg: https://github.com/WordPress/gutenberg/blob/master/docs/designers-developers/developers/themes/theme-support.md
+		add_theme_support( 'experimental-link-color' );
 	}
 endif;
 add_action( 'after_setup_theme', 'rockfield_setup', 12 );

+ 9 - 0
shawburn/experimental-theme.json

@@ -0,0 +1,9 @@
+{
+	"styles": {
+		"root": {
+			"color": {
+				"link": "var(--wp--preset--color--primary)"
+			}
+		}
+	}
+} 

+ 3 - 0
shawburn/functions.php

@@ -66,6 +66,9 @@ if ( ! function_exists( 'shawburn_setup' ) ) :
 
 		// Enable Full Site Editing
 		add_theme_support( 'full-site-editing' );
+
+		// Add support for experimental link color via Gutenberg: https://github.com/WordPress/gutenberg/blob/master/docs/designers-developers/developers/themes/theme-support.md
+		add_theme_support( 'experimental-link-color' );
 	}
 endif;
 add_action( 'after_setup_theme', 'shawburn_setup', 12 );

+ 9 - 0
stow/experimental-theme.json

@@ -0,0 +1,9 @@
+{
+	"styles": {
+		"root": {
+			"color": {
+				"link": "var(--wp--preset--color--primary)"
+			}
+		}
+	}
+} 

+ 2 - 0
stow/functions.php

@@ -64,6 +64,8 @@ if ( ! function_exists( 'stow_setup' ) ) :
 			)
 		);
 
+		// Add support for experimental link color via Gutenberg: https://github.com/WordPress/gutenberg/blob/master/docs/designers-developers/developers/themes/theme-support.md
+		add_theme_support( 'experimental-link-color' );
 	}
 endif;
 add_action( 'after_setup_theme', 'stow_setup', 12 );

+ 9 - 0
stratford/experimental-theme.json

@@ -0,0 +1,9 @@
+{
+	"styles": {
+		"root": {
+			"color": {
+				"link": "var(--wp--preset--color--primary)"
+			}
+		}
+	}
+} 

+ 3 - 0
stratford/functions.php

@@ -66,6 +66,9 @@ if ( ! function_exists( 'stratford_setup' ) ) :
 
 		// Remove footer menu
 		unregister_nav_menu( 'menu-2' );
+
+		// Add support for experimental link color via Gutenberg: https://github.com/WordPress/gutenberg/blob/master/docs/designers-developers/developers/themes/theme-support.md
+		add_theme_support( 'experimental-link-color' );
 	}
 endif;
 add_action( 'after_setup_theme', 'stratford_setup', 12 );