Site logo

Archived topic

How to add padding around button

3 replies · Started by crosby87 on May 10, 2022

Viewing posts 1–4 of 4

Hi there,

Could you please provide a CSS to add padding around the second button that you can see at the bottom of the page?
See link in private.

This is the button (red arrow): https://imgur.com/a/lqSFPUh

Hi there,

why not use the GenerateBlocks button like the one above it ?

Because that one adds the noreferrer tag automatically and when I try to edit the code and remove it, it adds it back.
I know there is a PHP code which I can use to remove it, but I do not want to do that. I only want to remove noreferrer for certain buttons.

Try this:

.wp-block-button .wp-block-button__link {
    padding: 20px 20px;
}
This archived topic is closed to new replies.