Styling specific Contact Form – I've tried it all!
-
I’m at a loss. None of my styles are detected and I need help!
the website is ocelotmedia.com. All the sidebar contact forms need to be styled differently than the contact forms in the body text area (on home page and contact page).
Example of page with sidebar: https://ocelotmedia.com/services/consulting/
I’ve tried creating custom styles and assigning the class into the shortcode.
<div>[contact-form-7 id=”415″ html_class=”sidebar-contact” title=”Sidebar Contact Form”]</div>I’ve tried targeting the contact form with the specific wpcf7 id
#wpcf7-f415-p52-o1 .wpcf7 input[type=”text”],
#wpcf7-f415-p52-o1 .wpcf7 input[type=”email”],
#wpcf7-f415-p52-o1 .wpcf7 input[type=”tel”] {
width: 100%;
height: 30px;
}#wpcf7-f415-p52-o1 .wpcf7 textarea {
width: 100%;
}#wpcf7-f415-p52-o1 .wpcf7-submit {
margin-right: 5px;
margin-left: 5px;
}#wpcf7-f415-p52-o1 .wpcf7-form {
border: transparent;
}I’ve tried inserting class=”sidebar-contact” into a <div> in the actual contact form.
Please help! I feel like I’ve tried every combination I can think of.
- The topic ‘Styling specific Contact Form – I've tried it all!’ is closed to new replies.