Changing the colour of buttons in the theme
-
Hey, this is my first wordpress self-hosted site and I’m getting to grips with CSS for the first time and trying to customize things. Mostly this is going OK, though fonts have been an issue (which I’ll post another thread about in due course).
I’m currently struggling with the blue submit button the contact form which I want to turn red:
https://matthewsinclair.net/contact/
It’s using the plugin ‘Fast secure contact form’ but it’s pulling the colours from somewhere in the main template.
I am using the ‘inspect’ command in Chrome to try and identify the correct bit of code. I’ve tried this but isn’t working.
input[type="submit"] background: linear-gradient(#ff0000, #ff3333); } input[type="submit"]:hover { background: linear-gradient(#ff0000, #ff3333); }
I did manage to get the blog page ‘read more’ button to work using:
/* Making submit buttons red rather than blue */ a.readmore { border: 1px solid gray; background: linear-gradient(#ff0000, #ff3333); } a.readmore:hover { background: linear-gradient(#ff0000, #ff3333); }
Can any one help? Thanks in advance.
- The topic ‘Changing the colour of buttons in the theme’ is closed to new replies.