I have installed Contact form 7 on my WordPress site, and have styled the rest of the fields successfully, but unfortunately I can’t find a solution how to style the File Attach button. I have inserted the code that I have written in contact form 7 module in admin panel. Besides that, I have the CSS for it in style.css;
Can anyone help me?
<div class="container">
<div class="row">
<div class="col-md-4">
<p>Your Name (required)<br />
[text* your-name] </p>
</div>
<div class="col-md-4">
<p>Your Email (required)<br />
[email* your-email] </p>
</div>
<div class="col-md-4">
<p>Subject<br />
[text your-subject] </p>
</div>
</div>
<div class="row">
<div class="col-md-8">
<p>Your Message<br />
[textarea your-message] </p>
</div>
<div class="col-md-4">
[file* uploadcv limit:50000000 class:cv-upload]
</div>
</div>
<div class="row">
<div class="col-md-4 ">
[recaptcha id:recapcha class:recapcha]
</div>
<p>[submit "Send"]</p>
</div>
</div>
Use HTml like this
and css
I think it will work.
I like the idea of using a recognized button for file input (since the framework is Bootstrap), so I use
.btn-file
This is what i use
in contact form