Archived topic
Display an Image on Button
3 replies · Started by Marinos Panayi on June 5, 2022
Is it possible to display an image on a button using the GenerateBlocks 'Buttons' block?
If not then is there an alternative way to display a button that includes text and an image?
Hi Marinos,
No, GB button can't display images.
You can use a container block instead.
If you have GB pro, you can add link to container block: https://docs.generateblocks.com/article/container-links/
If you don't have GB pro, try this solution:
https://generatepress.com/forums/topic/entire-block-clickable/#post-1582720
Hi there,
this might work for you, too:
Add a button into a container, add the image as a background to the container, set the margins of the container to zero, padding of the button so that it fills the container - and you have a "button-container" with text and image.
That sounds like a valid workaround lol :)