Block attributes depending on the custom post type
-
Hy is there a way to change block attributes defaults depending on the page where a block is loaded. I’m using dynamic blocks in my project, and in block registration, I have defined attributes that have some defaults.
For example, color red on the title. If I would want to specify that default title color is blue, if the block is loaded in, let’s say custom post type, admin editor.
Is there a way to do this?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Block attributes depending on the custom post type’ is closed to new replies.