Browse Source

parts/header

windhamdavid 1 year ago
parent
commit
84d0b61a44
3 changed files with 20 additions and 22 deletions
  1. 2 2
      functions.php
  2. 10 8
      parts/header.html
  3. 8 12
      theme.json

+ 2 - 2
functions.php

@@ -109,7 +109,7 @@ add_filter(
   10
 );
 
-add_filter( 'allowed_block_types_all', 'gwp24_allowed_block_types', 25, 2 );
+//add_filter( 'allowed_block_types_all', 'gwp24_allowed_block_types', 25, 2 );
 function gwp24_allowed_block_types( $allowed_blocks, $editor_context ) {
 	return array(
 		'core/paragraph',
@@ -129,7 +129,7 @@ function gwp24_allowed_block_types( $allowed_blocks, $editor_context ) {
     'core/separator',
     'core/spacer',
     'core/shortcode',
-    //'core/html',
+    'core/html',
     'core/freeform',
     'core/verse',
     'core/code',

+ 10 - 8
parts/header.html

@@ -1,11 +1,12 @@
-<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"20px","bottom":"20px"}}},"layout":{"type":"constrained"}} -->
-<div class="autohide navbar fixed-top text-light wp-block-group alignwide has-contrast-background-color has-background"
-	style="padding-top:20px;padding-bottom:20px">
-	<!-- wp:group {"align":"wide","layout":{"type":"flex","justifyContent":"space-between","flexWrap":"wrap"}} -->
+<!-- wp:group {"style":{"spacing":{"padding":{"top":"10px","bottom":"10px"}}},"layout":{"type":"constrained"}} -->
+<div class="autohide navbar fixed-top wp-block-group has-base-color  has-contrast-background-color has-background" style="padding-top:20px;padding-bottom:20px">
+	<!-- wp:group {"layout":{"type":"flex","justifyContent":"space-between","flexWrap":"wrap"}} -->
+
 	<div class="wp-block-group alignwide">
-		<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|77"},"layout":{"selfStretch":"fit","flexSize":null}},"layout":{"type":"flex"}} -->
+		
+		<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|50"},"layout":{"selfStretch":"fit","flexSize":null}},"layout":{"type":"flex"}} -->
 		<div class="wp-block-group">
-			<!-- wp:site-logo {"width":60 } /-->
+			<!-- wp:site-logo {"width":75 } /-->
 			<!-- wp:group {"style":{"spacing":{"blockGap":"20px"}}} -->
 			<div class="wp-block-group">
 				<!-- wp:site-title {"level":0} /-->
@@ -13,10 +14,11 @@
 			<!-- /wp:group -->
 		</div>
 		<!-- /wp:group -->
-		<nav class="wha">
+
 		<!-- wp:navigation {"layout":{"type":"flex","justifyContent":"right","orientation":"horizontal"},"style":{"spacing":{"margin":{"top":"0"},"blockGap":"var:preset|spacing|30"},"layout":{"selfStretch":"fit","flexSize":null}}} /-->
-		</nav>
+
 	</div>
+
 	<!-- /wp:group -->
 </div>
 <!-- /wp:group -->

+ 8 - 12
theme.json

@@ -3,6 +3,14 @@
 	"$schema": "https://schemas.wp.org/trunk/theme.json",
 	"settings": {
 		"appearanceTools": true,
+		"useRootPaddingAwareAlignments": false,
+		"layout": {
+			"contentSize": "1080px",
+			"wideSize": "1280px"
+		},
+		"spacing": {
+			"units": [ "px", "em", "rem", "vh", "vw", "%" ]
+		},
 		"color": {
 			"custom": false,
 			"defaultPalette": false,
@@ -28,11 +36,6 @@
 					"color": "#484c57",
 					"name": "Secondary"
 				},
-				{
-					"slug": "grey",
-					"color": "#595959",
-					"name": "grey"
-				},
 				{
 					"slug": "transparent",
 					"color": "transparent",
@@ -65,13 +68,6 @@
 				}
 			]
 		},
-		"layout": {
-			"contentSize": "1080px",
-			"wideSize": "1280px"
-		},
-		"spacing": {
-			"units": [ "px", "em", "rem", "vh", "vw", "%" ]
-		},
 		"typography": {
 			"dropCap": true,
 			"fluid": true,