Custom attributes for core/button depending on the parent using Gutenberg

[ad_1]

Hi! I have a custom block named Payment Buttons. Inside that, I want to add as many buttons as I need. Each button should have a dropdown with a selectable list of links.

The challenge here is to detect the buttons in a specific parent and add that dropdown to only those buttons, not to all button components.

I’m ready to explain more if it’s required. Can anyone give any suggestions?

Thanks!

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer