Site logo

Archived topic

Button - default values

1 reply · Started by Former User on June 12, 2020

Viewing posts 1–2 of 2

Hey guys,
I'd like to be able to control design of all buttons. I tried to add it to reusable blocks, but that's not the solution.

In the Customizer I can set up default colors and font, that's fine.
But I'd like to be able control also other parameters, let's say these:

- align center
- outline block style
- border radius 10

So let's say when in one year I decide to make small re-design, I can easily customize all buttons at once somewhere in code.

Hi there,

you would need to add your custom styles to some CSS like this:

button:not(.menu-toggle), 
html input[type="button"], 
input[type="reset"], 
input[type="submit"], 
.button, .button:visited, 
.wp-block-button .wp-block-button__link {

    /* Add your styles here */

}
This archived topic is closed to new replies.