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

Update innerBlock template for Featured Product and Featured Category blocks #5867

Merged
merged 2 commits into from
Feb 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions assets/js/blocks/featured-category/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,15 +270,21 @@ const FeaturedCategory = ( {
<InnerBlocks
template={ [
[
'core/button',
{
text: __(
'Shop now',
'woo-gutenberg-products-block'
),
url: category.permalink,
align: 'center',
},
'core/buttons',
{},
[
[
'core/button',
{
text: __(
'Shop now',
'woo-gutenberg-products-block'
),
url: category.permalink,
align: 'center',
},
],
],
],
] }
templateLock="all"
Expand Down
24 changes: 15 additions & 9 deletions assets/js/blocks/featured-product/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,15 +356,21 @@ const FeaturedProduct = ( {
<InnerBlocks
template={ [
[
'core/button',
{
text: __(
'Shop now',
'woo-gutenberg-products-block'
),
url: product.permalink,
align: 'center',
},
'core/buttons',
{},
[
[
'core/button',
{
text: __(
'Shop now',
'woo-gutenberg-products-block'
),
url: product.permalink,
align: 'center',
},
],
],
],
] }
templateLock="all"
Expand Down