Hi,
Is there a way to change de value of an attribute when switching from visibility state?
I don't want different attributes for every visibility state.
Thanks in advance!
Greetings,
Jo
|
Hi,
Is there a way to change de value of an attribute when switching from visibility state?
I don't want different attributes for every visibility state.
Thanks in advance!
Greetings,
Jo
Yes, add a block table to your block. Add the visibility parameter first and then any attributes. The block table is kinda like a spread sheet where you can now specify attribute values as they relate to each visibility state. The block table has a grip that will pop open a listing of the entries in the left most column for the user to select from. The grip on the visibility state would now be redundant so you can turn it off. (set the grips to 0)
thank you for your reply.
The block table seems to work in block editor test mode.
When I try this outside the block editor, the attribute isn't changed.
Any ideas what might be causing this?
You may need to resync the block attributes with the block definition. ATTSYNC will do it. Or, just insert a fresh block.
I can solve this problem , please visit this link
- - - Updated - - -
https://youtu.be/sHFhcIHuLSg