Where should I place this CSS code?
-
I am using Contact Form 7 and am trying to modify the colour and width of the borders of the various text boxes.
According to the plugin documentation:
Which Style Sheet Should I Edit?
Any style sheet is okay, but I recommend editing your theme’s main style sheet. It’s better not to edit style sheets in the plugin because your changes will be overwritten when the plugin is updated. Themes can be updated, but they are generally updated less frequently than plugins. If your theme is updated often, you might make a child theme and manage the style sheet in the child theme.
The code I want to edit is:
.wpcf7 { background-color: #fff; border: 20px solid #111111; border-radius: 3px; box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.06) inset; color: #aaa; font-size: 16px; font-weight: 400; padding: 16px; width: 100%; }Site: http://www.ripponacademic.com/contact/
The key line (which I have changed in the above CSS) is:
border: 20px solid #111111;I have tried, following the instructions, placing this CSS in my theme’s style.css. I have also placed it in the plugin “Simple Custom CSS”.
However, in neither case, are there any changes to the text boxes of the form.
I’m at a loss to know where to place the CSS. Any ideas? Thanks.
This is what the bottom of my style.css looks like:
.wpcf7 { background-color: #fff; border: 5px solid #111111; border-radius: 3px; box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.06) inset; color: #aaa; font-size: 16px; font-weight: 400; padding: 16px; width: 100%; } }
The topic ‘Where should I place this CSS code?’ is closed to new replies.