Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 2ebd437

Browse files
authored
Add Store Breadcrumbs block and make Product Title a link in the blockified archive-product and product-search-results templates (#8508)
* Add Store Breadcrumbs block to the blockified archive-product and product-search-results templates * Make Product Title a link by default This has been changed in the Products block, so it should be relfected here as well
1 parent 6e913c6 commit 2ebd437

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

templates/templates/blockified/archive-product.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<div class="wp-block-group">
55
<!-- wp:query {"query":{"perPage":9,"pages":0,"offset":0,"postType":"product","order":"asc","orderBy":"title","author":"","search":"","exclude":[],"sticky":"","inherit":true,"__woocommerceAttributes":[],"__woocommerceStockStatus":["instock","outofstock","onbackorder"]},"displayLayout":{"type":"flex","columns":3},"namespace":"woocommerce/product-query","align":"wide"} -->
66
<div class="wp-block-query alignwide">
7+
<!-- wp:woocommerce/breadcrumbs /-->
8+
79
<!-- wp:query-title {"type":"archive","showPrefix":false} /-->
810

911
<!-- wp:term-description /-->
@@ -19,7 +21,7 @@
1921

2022
<!-- wp:post-template {"__woocommerceNamespace":"woocommerce/product-query/product-template"} -->
2123
<!-- wp:woocommerce/product-image {"isDescendentOfQueryLoop":true} /-->
22-
<!-- wp:post-title {"textAlign":"center","level":3,"fontSize":"medium","__woocommerceNamespace":"woocommerce/product-query/product-title"} /-->
24+
<!-- wp:post-title {"textAlign":"center","level":3,"fontSize":"medium","isLink":true,"__woocommerceNamespace":"woocommerce/product-query/product-title"} /-->
2325
<!-- wp:woocommerce/product-price {"isDescendentOfQueryLoop":true,"textAlign":"center","fontSize":"small","style":{"spacing":{"margin":{"bottom":"1rem"}}}} /-->
2426
<!-- wp:woocommerce/product-button {"isDescendentOfQueryLoop":true,"textAlign":"center","fontSize":"small","style":{"spacing":{"margin":{"bottom":"1rem"}}}} /-->
2527
<!-- /wp:post-template -->

templates/templates/blockified/product-search-results.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<div class="wp-block-group">
55
<!-- wp:query {"query":{"perPage":9,"pages":0,"offset":0,"postType":"product","order":"asc","orderBy":"title","author":"","search":"","exclude":[],"sticky":"","inherit":true,"__woocommerceAttributes":[],"__woocommerceStockStatus":["instock","outofstock","onbackorder"]},"displayLayout":{"type":"flex","columns":3},"namespace":"woocommerce/product-query","align":"wide"} -->
66
<div class="wp-block-query alignwide">
7+
<!-- wp:woocommerce/breadcrumbs /-->
8+
79
<!-- wp:query-title {"type":"search","showPrefix":false} /-->
810

911
<!-- wp:woocommerce/store-notices /-->
@@ -17,7 +19,7 @@
1719

1820
<!-- wp:post-template {"__woocommerceNamespace":"woocommerce/product-query/product-template"} -->
1921
<!-- wp:woocommerce/product-image {"isDescendentOfQueryLoop":true} /-->
20-
<!-- wp:post-title {"textAlign":"center","level":3,"fontSize":"medium","__woocommerceNamespace":"woocommerce/product-query/product-title"} /-->
22+
<!-- wp:post-title {"textAlign":"center","level":3,"fontSize":"medium","isLink":true,"__woocommerceNamespace":"woocommerce/product-query/product-title"} /-->
2123
<!-- wp:woocommerce/product-price {"isDescendentOfQueryLoop":true,"textAlign":"center","fontSize":"small","style":{"spacing":{"margin":{"bottom":"1rem"}}}} /-->
2224
<!-- wp:woocommerce/product-button {"isDescendentOfQueryLoop":true,"textAlign":"center","fontSize":"small","style":{"spacing":{"margin":{"bottom":"1rem"}}}} /-->
2325
<!-- /wp:post-template -->

0 commit comments

Comments
 (0)