Sfoglia il codice sorgente

Change title font size in theme.json instead of tempalte

Jason Crist 4 anni fa
parent
commit
fcc4791869

+ 1 - 1
blockbase/block-template-parts/header.html

@@ -1,6 +1,6 @@
 <!-- wp:group {"align":"full","tagName":"header","style":{"spacing":{"padding":{"right":"35px","left":"35px"}}},"className":"site-header"} -->
 <!-- wp:group {"align":"full","tagName":"header","style":{"spacing":{"padding":{"right":"35px","left":"35px"}}},"className":"site-header"} -->
 <header class="wp-block-group alignfull site-header" style="padding-right:35px;padding-left:35px">
 <header class="wp-block-group alignfull site-header" style="padding-right:35px;padding-left:35px">
-	<!-- wp:site-title {"fontSize":"normal"} /-->
+	<!-- wp:site-title /-->
 	<!-- wp:navigation {"orientation":"horizontal","textColor":"foreground-light","itemsJustification":"right","fontSize":"small"} /-->
 	<!-- wp:navigation {"orientation":"horizontal","textColor":"foreground-light","itemsJustification":"right","fontSize":"small"} /-->
 </header>
 </header>
 <!-- /wp:group -->
 <!-- /wp:group -->

+ 1 - 1
blockbase/experimental-theme.json

@@ -373,7 +373,7 @@
 			},
 			},
 			"core/site-title": {
 			"core/site-title": {
 				"typography": {
 				"typography": {
-					"fontSize": "60px",
+					"fontSize": "var(--wp--preset--font-size--normal)",
 					"fontWeight": 700
 					"fontWeight": 700
 				}
 				}
 			},
 			},