2 Commits ca13ea8b69 ... c991cc1fc7

Author SHA1 Message Date
  windhamdavid c991cc1fc7 footer 4 months ago
  windhamdavid 19069fbae4 edits 4 months ago
6 changed files with 28 additions and 49 deletions
  1. 3 3
      README.md
  2. 3 1
      functions.php
  3. 6 6
      parts/header.html
  4. 14 31
      patterns/footer.php
  5. 0 1
      style.css
  6. 2 7
      theme.json

+ 3 - 3
README.md

@@ -13,8 +13,8 @@ Author URI: https://davidwindham.com
 Description: A Theme for Lakelands Plastic Surgery
 Description: A Theme for Lakelands Plastic Surgery
 Version: 0.1.0
 Version: 0.1.0
 Tags: Full Site Editing, Blocks, Patterns
 Tags: Full Site Editing, Blocks, Patterns
-Requires PHP: 7.0
-Tested up to: 6.5
+Requires PHP: 7.4
+Tested up to: 6.6.1
 License: GNU General Public License v2 or later
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 
 
@@ -50,7 +50,7 @@ gb (gulp build) `//avoid build step with no SaSS`
 
 
 ### ToDo
 ### ToDo
 
 
-- Patient Forms
+- ~~Patient Forms~~
 - Branded content
 - Branded content
 - rework navigation
 - rework navigation
 - bug in nav padding fixed in upcoming release rm fix from style.css
 - bug in nav padding fixed in upcoming release rm fix from style.css

+ 3 - 1
functions.php

@@ -301,4 +301,6 @@ add_filter(
     return $settings;
     return $settings;
   },
   },
   10
   10
-);
+);
+
+remove_action( 'enqueue_block_editor_assets', 'wp_enqueue_editor_block_directory_assets' );

+ 6 - 6
parts/header.html

@@ -7,13 +7,13 @@
 			<!-- wp:site-logo {"width":400} /-->
 			<!-- wp:site-logo {"width":400} /-->
 		</div>
 		</div>
 		<!-- /wp:group -->
 		<!-- /wp:group -->
-		<!-- wp:group {"layout":{"type":"flex","orientation":"vertical"}} -->
+		<!-- wp:group {"layout":{"type":"flex","orientation":"vertical","justifyContent":"right"}} -->
 			<div class="wp-block-group">
 			<div class="wp-block-group">
-				<!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.3"}},"fontSize":"medium"} -->
-				<p class="has-medium-font-size" style="line-height:1.3">305 W Alexander Ave #A <br>Greenwood, SC 29646</p>
+				<!-- wp:paragraph {"align":"right","style":{"typography":{"lineHeight":"1.3"}},"fontSize":"medium"} -->
+				<p class="has-text-align-right has-medium-font-size" style="line-height:1.3">305 W Alexander Ave #A <br>Greenwood, SC 29646</p>
 				<!-- /wp:paragraph -->
 				<!-- /wp:paragraph -->
-				<!-- wp:paragraph {"style":{"typography":{"fontSize":"1.5rem"}}} -->
-				<p style="font-size:1.5rem;line-height:0">864-223-0505</p>
+				<!-- wp:paragraph {"align":"right","style":{"typography":{"fontSize":"1.5rem"}}} -->
+				<p class="has-text-align-right" style="font-size:1.5rem;line-height:0">864-223-0505</p>
 				<!-- /wp:paragraph -->
 				<!-- /wp:paragraph -->
 			</div>
 			</div>
 	<!-- /wp:group -->
 	<!-- /wp:group -->
@@ -23,6 +23,6 @@
 <!-- /wp:group -->
 <!-- /wp:group -->
 <!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"20px","bottom":"20px"}}},"className":"has-contrast-light-color has-contrast-background-color has-background","layout":{"type":"constrained","justifyContent":"center"}} -->
 <!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"20px","bottom":"20px"}}},"className":"has-contrast-light-color has-contrast-background-color has-background","layout":{"type":"constrained","justifyContent":"center"}} -->
 	<div class="wp-block-group alignwide has-contrast-light-color has-contrast-background-color has-background" style="padding-top:20px;padding-bottom:20px">
 	<div class="wp-block-group alignwide has-contrast-light-color has-contrast-background-color has-background" style="padding-top:20px;padding-bottom:20px">
-		<!-- wp:navigation {"ref":5,"icon":"menu","overlayBackgroundColor":"contrast","overlayTextColor":"white","style":{"spacing":{"margin":{"top":"0"},"blockGap":"var:preset|spacing|50"},"layout":{"selfStretch":"fit","flexSize":null}},"layout":{"type":"flex","justifyContent":"left","orientation":"horizontal","flexWrap":"wrap"}} /-->
+		<!-- wp:navigation {"ref":5,"icon":"menu","overlayBackgroundColor":"contrast","overlayTextColor":"white","style":{"spacing":{"margin":{"top":"0"},"blockGap":"var:preset|spacing|60"},"layout":{"selfStretch":"fit","flexSize":null}},"layout":{"type":"flex","justifyContent":"left","orientation":"horizontal","flexWrap":"wrap"}} /-->
 	</div>
 	</div>
 <!-- /wp:group -->
 <!-- /wp:group -->

+ 14 - 31
patterns/footer.php

@@ -11,8 +11,8 @@
 <!-- wp:group {"align":"full","textColor":"base","backgroundColor":"primary","layout":{"type":"constrained"}} -->
 <!-- wp:group {"align":"full","textColor":"base","backgroundColor":"primary","layout":{"type":"constrained"}} -->
 <div class="wp-block-group alignfull has-text-color-base has-contrast-light-color has-primary-background-color has-text-color has-background">
 <div class="wp-block-group alignfull has-text-color-base has-contrast-light-color has-primary-background-color has-text-color has-background">
 
 
-	<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|50"}}}} -->
-	<div class="wp-block-group alignwide container" style="padding-top:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--50)">
+	<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70"}}}} -->
+	<div class="wp-block-group alignwide container" style="padding-top:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70)">
 		
 		
 		<!-- wp:columns {"style":{"spacing":{"padding":{"top":"var:preset|spacing|10"}}}} -->
 		<!-- wp:columns {"style":{"spacing":{"padding":{"top":"var:preset|spacing|10"}}}} -->
 		<div class="wp-block-columns" style="padding-top:var(--wp--preset--spacing--10)">
 		<div class="wp-block-columns" style="padding-top:var(--wp--preset--spacing--10)">
@@ -22,33 +22,15 @@
 				<!-- wp:heading {"level":4} -->
 				<!-- wp:heading {"level":4} -->
 				<h4	class="wp-block-heading">Our Location</h4>
 				<h4	class="wp-block-heading">Our Location</h4>
 				<!-- /wp:heading -->
 				<!-- /wp:heading -->
-				<!-- wp:paragraph {"style":{"typography":{"lineHeight":"0","font-size":"1.2rem"}}} -->
-				<p style="font-size:1.2rem;line-height:0">Lakelands Plastic Surgery</p>
-				<!-- /wp:paragraph -->
-				<!-- wp:paragraph {"style":{"typography":{"lineHeight":"0","font-size":"1.2rem"}}} -->
-				<p style="font-size:1.2rem;line-height:0">305 W Alexander Ave #A</p>
-				<!-- /wp:paragraph -->
-				<!-- wp:paragraph {"style":{"typography":{"lineHeight":"0","font-size":"1.2rem"}}} -->
-				<p style="font-size:1.2rem;line-height:0">Greenwood, SC 29646</p>
-				<!-- /wp:paragraph -->
-				<!-- wp:paragraph {"style":{"typography":{"lineHeight":"0","font-size":"1.2rem"}}} -->
-				<p style="font-size:1.2rem;line-height:0">(864)223-0505</p>
+				<!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.2rem","font-size":"1.2rem"}}} -->
+				<p>Lakelands Plastic Surgery<br>305 W Alexander Ave #A<br>Greenwood, SC 29646<br>(864)223-0505</p>
 				<!-- /wp:paragraph -->
 				<!-- /wp:paragraph -->
-				<!-- wp:spacer {"height":"var:preset|spacing|30"} -->
-				<div style="height:var(--wp--preset--spacing--30)" aria-hidden="true" class="wp-block-spacer"></div>
+				<!-- wp:spacer {"height":"var:preset|spacing|10"} -->
+				<div style="height:var(--wp--preset--spacing--10)" aria-hidden="true" class="wp-block-spacer"></div>
 				<!-- /wp:spacer -->
 				<!-- /wp:spacer -->
-				<!-- wp:heading {"level":4} -->
-				<h4	class="wp-block-heading">Follow Us</h4>
-				<!-- /wp:heading -->
-				<!-- wp:social-links {"openInNewTab":true,"className":"is-style-default","layout":{"type":"flex","orientation":"horizontal"}} -->
-				<ul class="wp-block-social-links is-style-default">
-					<!-- wp:social-link {"url":"https://www.facebook.com/PiedmontPlasticSurgery","service":"facebook"} /-->
-					<!-- wp:social-link {"url":"/blog","service":"feed"} /-->
-				</ul>
-				<!-- /wp:social-links -->
 			</div>
 			</div>
 			<!-- /wp:column -->
 			<!-- /wp:column -->
-		
+
 			<!-- wp:column {"width":"33%"} -->
 			<!-- wp:column {"width":"33%"} -->
 			<div class="wp-block-column" style="flex-basis:33%">
 			<div class="wp-block-column" style="flex-basis:33%">
 				<!-- wp:heading {"level":4} -->
 				<!-- wp:heading {"level":4} -->
@@ -65,7 +47,7 @@
 				<!-- wp:heading {"level":4} -->
 				<!-- wp:heading {"level":4} -->
 				<h4	class="wp-block-heading">Navigation</h4>
 				<h4	class="wp-block-heading">Navigation</h4>
 				<!-- /wp:heading -->
 				<!-- /wp:heading -->
-				<!-- wp:navigation {"ref":413,"layout":{"type":"flex","orientation":"vertical"},"style":{"spacing":{"blockGap":"0"}},"fontSize":"medium"} /-->
+				<!-- wp:navigation {"ref":413,"overlayMenu":"never","layout":{"type":"flex","orientation":"vertical"},"typography":{"fontSize":"1rem"},"style":{"spacing":{"blockGap":"0"}}} /-->
 			</div>
 			</div>
 			<!-- /wp:column -->
 			<!-- /wp:column -->
 
 
@@ -90,8 +72,8 @@
 		<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:33%">
 		<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:33%">
 		<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|10"}},"layout":{"type":"flex","orientation":"horizontal","justifyContent":"center"}} -->
 		<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|10"}},"layout":{"type":"flex","orientation":"horizontal","justifyContent":"center"}} -->
 		<div class="wp-block-group">
 		<div class="wp-block-group">
-		<!-- wp:image {"id":305,"sizeSlug":"full","linkDestination":"none"} -->
-		<figure class="wp-block-image size-full"><img src="<?php echo get_template_directory_uri(); ?>/img/f-logo2_0.png" alt="" class="wp-image-305"/></figure>
+		<!-- wp:image {"id":307,"sizeSlug":"full","linkDestination":"none"} -->
+		<figure class="wp-block-image size-full"><img src="<?php echo get_template_directory_uri(); ?>/img/f-logo4_1-grey.png" alt="" class="wp-image-307"/></figure>
 		<!-- /wp:image --></div>
 		<!-- /wp:image --></div>
 		<!-- /wp:group --></div>
 		<!-- /wp:group --></div>
 		<!-- /wp:column -->
 		<!-- /wp:column -->
@@ -110,12 +92,13 @@
 		<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:33%">
 		<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:33%">
 		<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|10"}},"layout":{"type":"flex","orientation":"horizontal","justifyContent":"center"}} -->
 		<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|10"}},"layout":{"type":"flex","orientation":"horizontal","justifyContent":"center"}} -->
 		<div class="wp-block-group">
 		<div class="wp-block-group">
-		<!-- wp:image {"id":307,"sizeSlug":"full","linkDestination":"none"} -->
-		<figure class="wp-block-image size-full"><img src="<?php echo get_template_directory_uri(); ?>/img/f-logo4_1-grey.png" alt="" class="wp-image-307"/></figure>
+		<!-- wp:image {"id":305,"sizeSlug":"full","linkDestination":"none"} -->
+		<figure class="wp-block-image size-full"><img src="<?php echo get_template_directory_uri(); ?>/img/f-logo2_0.png" alt="" class="wp-image-305"/></figure>
 		<!-- /wp:image --></div>
 		<!-- /wp:image --></div>
 		<!-- /wp:group --></div>
 		<!-- /wp:group --></div>
-		<!-- /wp:column --></div>
+		<!-- /wp:column -->
 		
 		
+		</div>
 		<!-- /wp:columns -->
 		<!-- /wp:columns -->
 
 
 		</div>
 		</div>

+ 0 - 1
style.css

@@ -20,7 +20,6 @@ Thanks:
   margin-block-start: 0;
   margin-block-start: 0;
 }
 }
 
 
-
 /* https://wordpress.org/support/topic/wp-6-2-gutenberg-ul-has-background-sometimes-appears-and-sometimes-doesnt/ */
 /* https://wordpress.org/support/topic/wp-6-2-gutenberg-ul-has-background-sometimes-appears-and-sometimes-doesnt/ */
 /* https://github.com/WordPress/gutenberg/issues/50486 */
 /* https://github.com/WordPress/gutenberg/issues/50486 */
 ol.has-background, ul.has-background {
 ol.has-background, ul.has-background {

+ 2 - 7
theme.json

@@ -146,7 +146,7 @@
 				}
 				}
 			},
 			},
 			"core/navigation": {
 			"core/navigation": {
-				"css": "& .wp-block-site-title{ margin:0; font-weight:400;}",
+				"css": "& .wp-block-site-title{ margin:0; font-weight:500;}",
 				"elements": {
 				"elements": {
 					"link": {
 					"link": {
 						"color": {
 						"color": {
@@ -177,11 +177,6 @@
 					}
 					}
 				}
 				}
 			},
 			},
-			"core/post-author-name": {
-				"typography": {
-					"fontSize": "var(--wp--preset--font-size--small)"
-				}
-			},
 			"core/post-content": {
 			"core/post-content": {
 				"spacing": {
 				"spacing": {
 					"margin": {
 					"margin": {
@@ -260,7 +255,7 @@
 				},
 				},
 				"color": {
 				"color": {
 					"background": "var(--wp--preset--color--primary)",
 					"background": "var(--wp--preset--color--primary)",
-					"text": "var(--wp--preset--color--base)"
+					"text": "var(--wp--preset--color--white)"
 				},
 				},
 				"typography": {
 				"typography": {
 					"fontSize": "var(--wp--preset--font-size--small)",
 					"fontSize": "var(--wp--preset--font-size--small)",