Site logo

Archived topic

Rounded Corner on Website Buttons

9 replies · Started by Ian on January 29, 2019

Viewing posts 1–10 of 10

Howdy,

I've got a lot of "submit" style buttons all over our website. You can see one on the homepage widget for newsletter signup. Is it possible to round the corners on all of these buttons?

Thanks so much!

Ian

This should handle pretty much all buttons on your website:

button, 
html input[type="button"], 
input[type="reset"], 
input[type="submit"], 
a.button, 
a.button:visited, 
a.wp-block-button__link:not(.has-background) {
    border-radius: 5px;
}

Once again you guys are AMAZING!!!

Glad we could help :)

Dear GP Team,

I have styled all buttons with border radius but would like to exclude the search buttons from styling on this code. Could you please guide me?

button, 
html input[type="button"], 
input[type="reset"], 
input[type="submit"], 
a.button, 
a.button:visited, 
a.wp-block-button__link:not(.has-background) {
    border-radius: 5px;
}

Thank you very much!

Change this:

html input[type="button"]

to

html input[type="button"]:not(.search-submit)

Dear David,

Oops, I did that but it didn't work

This archived topic is closed to new replies.