How to add the Block Visibility controls to individual buttons?

[ad_1]

The block editor, wrap buttons in a “Buttons” container. That container can be shown or hidden using Block Visibility.

However, the controls do not appear to be available at the individual Button block.

I have two buttons “Add to iPhone” and “Add to Android” and I was considering only showing the relevant button on the relevant OS, but as is, it does not appear to be possible.

(I can probably work around by using a Row block and two Buttons blocks, but I’d prefer not to add the additional markup and complexity if possible)

So, you think it would be possible, to add the Block Visibility controls to individual buttons?

 

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