issues
search
vigetlabs
/
wordpress-site-starter
2
stars
0
forks
source link
[Component] Custom Icon Button Block
#26
Open
bd-viget
opened
2 months ago
bd-viget
commented
2 months ago
Component Specs
Fields
{* Required element}
Button Text*
Button URL*
SVG Icon
Notes
The concept here is to roll our own version of the core Buttons/Button block that allows the button block to support an InnerBlock where the user can select an SVG Icon which is embedded directly into the button (as an
<svg>
, not
<img>
)
Also consider these alternative solutions:
Enable Button Icons
Extending the existing
core/button
block.
ACF Fields for Core Blocks
Design
Component Specs
Fields
{* Required element}
Notes
<svg>
, not<img>
)core/button
block.Design