From f049f853f0ebd191e1f4878b5af6f28f9e7ee2d6 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Thu, 4 Dec 2025 16:59:28 +0100 Subject: [PATCH] FEATURE Adding CTA and CTA group blocks to chapter section editor --- plugins/carhop-blocks/src/chapter-section/edit.js | 3 ++- plugins/carhop-blocks/src/chapter-section/save.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/carhop-blocks/src/chapter-section/edit.js b/plugins/carhop-blocks/src/chapter-section/edit.js index f002445..658eeac 100644 --- a/plugins/carhop-blocks/src/chapter-section/edit.js +++ b/plugins/carhop-blocks/src/chapter-section/edit.js @@ -336,8 +336,9 @@ export default function Edit({ attributes, setAttributes, ...props }) { "core/list", "core/button", "core/buttons", - "carhop-blocks/cta", "carhop-blocks/heading", + "carhop-blocks/cta", + "carhop-blocks/cta-group", ]} /> diff --git a/plugins/carhop-blocks/src/chapter-section/save.js b/plugins/carhop-blocks/src/chapter-section/save.js index 1dedf2e..287d21f 100644 --- a/plugins/carhop-blocks/src/chapter-section/save.js +++ b/plugins/carhop-blocks/src/chapter-section/save.js @@ -30,7 +30,7 @@ export default function save({ attributes }) { ${ hasLightBackground ? "chapter-section--bg-light" - : "chapter-section--bg-dark" + : " " }`, style: { "--chapter-section-text-color": textColor ? textColor : "#136f63",