Site logo

Archived topic

Global button spacing

5 replies · Started by Josh on December 21, 2022

Viewing posts 1–6 of 6

Is there any way to set global button padding? I'm using pro version of GeneratePress and the regular version of generateblocks. I want to set all buttons to have a padding of 5px 20px.

Hi Josh,

For reference, do the Buttons have different designs other than Padding? For instance, do the buttons have different colors?

I'd prefer to be able to set all that at once. Padding, bg color, text, hover color, hover text. All buttons throughout the site to be the same. Padding is most important.

I see. If you're using GB Pro, you can use Global Styles for all GB Buttons. Reference: https://docs.generateblocks.com/article/global-styles

Otherwise, you can try adding this through Appearance > Customize > Additional CSS:

a[class*="button"] {
  background-color: #8f0c51 !important;
  padding: 10px 30px 10px 30px !important;
}

This code targets all links with a class that has button text.

You may alter the values in this code to your preference.

awesome! thank you!

You're welcome, Josh!

This archived topic is closed to new replies.