windhamdavid 4 months ago
parent
commit
19069fbae4
6 changed files with 46 additions and 58 deletions
  1. 3 3
      README.md
  2. 3 1
      functions.php
  3. 6 6
      parts/header.html
  4. 33 41
      patterns/footer.php
  5. 0 1
      style.css
  6. 1 6
      theme.json

+ 3 - 3
README.md

@@ -13,8 +13,8 @@ Author URI: https://davidwindham.com
 Description: A Theme for Lakelands Plastic Surgery
 Version: 0.1.0
 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 URI: http://www.gnu.org/licenses/gpl-2.0.html
 
@@ -50,7 +50,7 @@ gb (gulp build) `//avoid build step with no SaSS`
 
 ### ToDo
 
-- Patient Forms
+- ~~Patient Forms~~
 - Branded content
 - rework navigation
 - 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;
   },
   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} /-->
 		</div>
 		<!-- /wp:group -->
-		<!-- wp:group {"layout":{"type":"flex","orientation":"vertical"}} -->
+		<!-- wp:group {"layout":{"type":"flex","orientation":"vertical","justifyContent":"right"}} -->
 			<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 {"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 -->
 			</div>
 	<!-- /wp:group -->
@@ -23,6 +23,6 @@
 <!-- /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"}} -->
 	<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>
 <!-- /wp:group -->

+ 33 - 41
patterns/footer.php

@@ -11,64 +11,55 @@
 <!-- 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">
 
-	<!-- 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"}}}} -->
 		<div class="wp-block-columns" style="padding-top:var(--wp--preset--spacing--10)">
 			
-			<!-- wp:column {"width":"33%"} -->
-			<div class="wp-block-column" style="flex-basis:33%">
+			<!-- wp:column {"width":"25%"} -->
+			<div class="wp-block-column" style="flex-basis:25%">
 				<!-- wp:heading {"level":4} -->
 				<h4	class="wp-block-heading">Our Location</h4>
 				<!-- /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 {"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 {"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 -->
-				<!-- 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 -->
+			</div>
+			<!-- /wp:column -->
+
+			<!-- wp:column {"width":"25%"} -->
+			<div class="wp-block-column" style="flex-basis:25%">
 				<!-- wp:heading {"level":4} -->
-				<h4	class="wp-block-heading">Follow Us</h4>
+				<h4	class="wp-block-heading">Resources</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 -->
+				<!-- wp:navigation {"ref":413,"overlayMenu":"never","layout":{"type":"flex","orientation":"vertical"},"typography":{"fontSize":"1rem"},"style":{"spacing":{"blockGap":"0"}}} /-->
 			</div>
 			<!-- /wp:column -->
 		
-			<!-- wp:column {"width":"33%"} -->
-			<div class="wp-block-column" style="flex-basis:33%">
+			<!-- wp:column {"width":"25%"} -->
+			<div class="wp-block-column" style="flex-basis:25%">
 				<!-- wp:heading {"level":4} -->
-				<h4	class="wp-block-heading">Map &amp; Directions</h4>
+				<h4	class="wp-block-heading">Procedures</h4>
 				<!-- /wp:heading -->
-				<!-- wp:html -->
-				<iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d13203.676868748915!2d-82.157383!3d34.173983!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x88f8018e9e905425%3A0x1f21eac20dd0358e!2sLakelands%20Plastic%20Surgery!5e0!3m2!1sen!2sus!4v1721670522794!5m2!1sen!2sus" width="100%" height="300" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
-				<!-- /wp:html -->
+				<!-- wp:navigation {"ref":675,"overlayMenu":"never","layout":{"type":"flex","orientation":"vertical"},"typography":{"fontSize":"1rem"},"style":{"spacing":{"blockGap":"0"}}} /-->
 			</div>
 			<!-- /wp:column -->
 
-			<!-- wp:column {"width":"33%"} -->
-			<div class="wp-block-column" style="flex-basis:33%">
-				<!-- wp:heading {"level":4} -->
-				<h4	class="wp-block-heading">Navigation</h4>
-				<!-- /wp:heading -->
-				<!-- wp:navigation {"ref":413,"layout":{"type":"flex","orientation":"vertical"},"style":{"spacing":{"blockGap":"0"}},"fontSize":"medium"} /-->
+			<!-- wp:column {"width":"25%"} -->
+						<div class="wp-block-column" style="flex-basis:25%">
+				<!-- wp:spacer {"height":"1.6rem"} -->
+					<div style="height:1.6rem" aria-hidden="true" class="wp-block-spacer"></div>
+				<!-- /wp:spacer -->
+				<!-- wp:navigation {"ref":697,"overlayMenu":"never","layout":{"type":"flex","orientation":"vertical"},"typography":{"fontSize":"1rem"},"style":{"spacing":{"blockGap":"0"}}} /-->
 			</div>
 			<!-- /wp:column -->
 
+
+
 		</div>
 		<!-- /wp:columns -->
 
@@ -90,8 +81,8 @@
 		<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"}} -->
 		<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:group --></div>
 		<!-- /wp:column -->
@@ -110,12 +101,13 @@
 		<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"}} -->
 		<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:group --></div>
-		<!-- /wp:column --></div>
+		<!-- /wp:column -->
 		
+		</div>
 		<!-- /wp:columns -->
 
 		</div>

+ 0 - 1
style.css

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

+ 1 - 6
theme.json

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