Skip to content

Commit

Permalink
Craftfully: Fix issues with sidebar (#7669)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
alaczek authored Mar 5, 2024
1 parent 5e04247 commit 87fcce6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion craftfully/patterns/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<!-- /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"} /-->

Expand Down
2 changes: 1 addition & 1 deletion craftfully/patterns/posts-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<!-- /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 -->
4 changes: 2 additions & 2 deletions craftfully/patterns/sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@
<!-- /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"} /-->
Expand Down

0 comments on commit 87fcce6

Please sign in to comment.