From 29d298c9ca625b4bb96fdb17a6db4912920fe6ab Mon Sep 17 00:00:00 2001 From: gilbert-hernandez Date: Fri, 20 Dec 2024 14:50:32 -0700 Subject: [PATCH] KAD-3790 dynamic bg image on header and its rows unsupported --- src/blocks/header/block.json | 3 ++- src/blocks/header/children/row/edit.js | 1 - src/blocks/header/edit-inner.js | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/blocks/header/block.json b/src/blocks/header/block.json index fb49063e4..3dd774d2c 100644 --- a/src/blocks/header/block.json +++ b/src/blocks/header/block.json @@ -10,7 +10,8 @@ "customClassName": false, "reusable": false, "lock": false, - "kbMetadata": true + "kbMetadata": true, + "ktdynamic": true }, "textdomain": "kadence-blocks", "keywords": ["header", "footer", "navigation"], diff --git a/src/blocks/header/children/row/edit.js b/src/blocks/header/children/row/edit.js index 7ed94b608..db12afcee 100644 --- a/src/blocks/header/children/row/edit.js +++ b/src/blocks/header/children/row/edit.js @@ -249,7 +249,6 @@ export function Edit(props) { }) } disableMediaButtons={backgroundValue?.image ? true : false} - dynamicAttribute={'background' + suffix + size + ':image'} isSelected={isSelected} attributes={attributes} setAttributes={setAttributes} diff --git a/src/blocks/header/edit-inner.js b/src/blocks/header/edit-inner.js index 254064225..ed742b611 100644 --- a/src/blocks/header/edit-inner.js +++ b/src/blocks/header/edit-inner.js @@ -413,7 +413,6 @@ export function EditInner(props) { ) } disableMediaButtons={backgroundValue?.image ? true : false} - dynamicAttribute={'background' + suffix + size + ':image'} isSelected={isSelected} attributes={attributes} setAttributes={setAttributes}