Sfoglia il codice sorgente

Craftfully: Fix issues with sidebar (#7669)

* Update posts-list.php

Remove reference to theme name because it's breaking the sidebar.

* Update sidebar.php

Fix block errors in the editor.

* Update header.php

Update the column alignment.
alaczek 1 anno fa
parent
commit
87fcce69f7

+ 1 - 1
craftfully/patterns/header.php

@@ -20,7 +20,7 @@ declare( strict_types = 1 );
 <!-- /wp:column -->
 
 <!-- wp:column {"verticalAlignment":"center","width":"33%"} -->
-<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:33%"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"left"}} -->
+<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:33%"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"right"}} -->
 <div class="wp-block-group"><!-- wp:social-links {"iconBackgroundColor":"foreground","iconBackgroundColorValue":"#404040","size":"has-small-icon-size","style":{"spacing":{"blockGap":{"left":"var:preset|spacing|20"}}}} -->
 <ul class="wp-block-social-links has-small-icon-size has-icon-background-color"><!-- wp:social-link {"url":"#","service":"facebook"} /-->
 

+ 1 - 1
craftfully/patterns/posts-list.php

@@ -44,7 +44,7 @@ declare( strict_types = 1 );
 <!-- /wp:column -->
 
 <!-- wp:column {"width":"33.33%","style":{"spacing":{"blockGap":"var:preset|spacing|50"}}} -->
-<div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:template-part {"slug":"sidebar","theme":"craftfully"} /--></div>
+<div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:template-part {"slug":"sidebar"} /--></div>
 <!-- /wp:column --></div>
 <!-- /wp:columns --></div>
 <!-- /wp:group -->

+ 2 - 2
craftfully/patterns/sidebar.php

@@ -69,11 +69,11 @@ declare( strict_types = 1 );
 <!-- /wp:group -->
 
 <!-- wp:group {"layout":{"type":"constrained"}} -->
-<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)"><!-- wp:heading {"level":3} -->
+<div class="wp-block-group"><!-- wp:heading {"level":3} -->
 <h3 class="wp-block-heading"><?php echo esc_html__( 'Recent posts', 'craftfully' ); ?></h3>
 <!-- /wp:heading -->
 
-<!-- wp:query {"queryId":10,"query":{"perPage":"6","pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false}} -->
+<!-- wp:query {"query":{"perPage":"6","pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false}} -->
 <div class="wp-block-query"><!-- wp:post-template {"layout":{"type":"grid","columnCount":2}} -->
 <!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"inherit":false}} -->
 <div class="wp-block-group"><!-- wp:post-featured-image {"isLink":true,"aspectRatio":"1"} /-->