"Contact Form 7" is a WordPress contact form plugin. It can manage multiple contact forms, is customizable, supports Ajax-powered submitting, CAPTCHA, Akismet spam filtering and more.
Questions tagged [contact-form-7]
1887 questions
44
votes
7 answers
Contact Form 7 auto added p tags
I have next code inside contact form 7 editor
[text* name class:border-field placeholder "Name"]
…

Nenad Vracar
- 118,580
- 15
- 151
- 176
42
votes
9 answers
wordpress contactform7 textarea cols and rows change in smaller screens
I used contactform7 to create the contact form for a wordpress site. I want to reduce the rows in a textarea on that form for smaller screen sizes. Is there any method I can use using contactform7's own syntax? If not what are my options?
Below is…

Janaka Dombawela
- 441
- 1
- 4
- 7
36
votes
6 answers
Contact Form 7 AJAX Callback
Been searching around on this for a while and can't come up with any documentation to outline what i want to achieve.
I'm using wordpress and the Contact Form 7 plugin, all is working perfectly, what i want to achieve is to run some particular…

fish_r
- 667
- 1
- 6
- 23
32
votes
3 answers
How to multiple class add on contact form 7 submit button
When i add bootstrap button class, like..
[submit class:btn btn-main btn-lg "Send"]
on browser i see it show only one class add.
I need others 2 class add also Help Me..

S. M. Momin
- 389
- 1
- 3
- 12
32
votes
8 answers
How can I remove the span wrapper in Contact Form 7?
I use Contact Form 7 in my WordPress theme.
It is currently returning span and input:

SVE
- 1,555
- 4
- 30
- 57
23
votes
2 answers
How to prevent Contact Form 7 from sending emails
I am using contact form 7 to generate forms and handle form submit.
I am also using Hubspot integration to capture form submission data and therefore, do not require any email to be sent from Contact Form 7.
Is there any way to disable the email…

Stretch0
- 8,362
- 13
- 71
- 133
20
votes
5 answers
How to hook into Contact Form 7 Before Send
I have a plugin I am writing that I want to interact with Contact Form 7.
In my plugin I added the following action add_action
add_action("wpcf7_before_send_mail", "wpcf7_do_something_else");
function wpcf7_do_something_else(&$wpcf7_data) {
//…

Naterade
- 2,635
- 8
- 34
- 54
17
votes
4 answers
Contact Form 7: use hook created using wpcf7_before_send_mail for only one contact form by id
I am working on a site with several forms created using Contact Form 7. For one of these forms, I am passing variables that I collected using a hidden input field in the form. I am passing these variables into the email using the…

ardev
- 653
- 2
- 6
- 19
17
votes
2 answers
Change CF7 Form values dynamically
I've been attempting to change CF7 form fields dynamically without using Contact Form 7 Dynamic Text Extension. I've seen a ton of articles on how to get posted data, just not on how I can overwrite existing values. My goal is to dynamically change…

DeFeNdog
- 1,156
- 1
- 12
- 25
16
votes
7 answers
Placeholder in Contactform 7 - Wordpress
I am making a website for a client of me but im running into a problem.
I've made a contact form in wordpress using Contact Form 7. This plugin is really easy to use but when i wanted to use the placeholder property of the plugin it did not show the…

The_Monster
- 494
- 2
- 7
- 28
15
votes
6 answers
How to add a custom attribute?
How to add a custom attribute in the field Contact Form 7 without javascript ?
For example, there is such a field on the page:
Question: is it…

SVE
- 1,555
- 4
- 30
- 57
15
votes
4 answers
how to change form action url for contact form 7?
I'm using Contact Form 7 in a wordpress site with multiple forms.
I need to direct one form to a different form action url than the others.
I found the reply below for a previous thread but I'm not sure how to go about it.
Can someone specify what…

user1102824
- 161
- 1
- 1
- 7
14
votes
7 answers
Contact form 7 set field value with get request
I want to set a field value with get request
example.com/subscribe/?email=asfafs
but when i load the page which has the form on it, the form does not show. I get why it could not be showing. Because the form itself could submit a get request as…

Meneer Venus
- 1,039
- 2
- 12
- 28
13
votes
6 answers
Wordpress Contact form 7 custom shortcodes
Contact form 7 has some shortcodes, like [_date] to get todays date. But I want to display the date one week from now.
So I need to create a custom shortcode to Contact form 7 that takes say [next_week] and in the recived email the correct date is…

halliewuud
- 2,735
- 6
- 30
- 41
12
votes
3 answers
WordPress - Overriding a function in a plugin
I've been wonder for some time what the best practice is for modifying a plugin created by a WordPress user?
For example there are a couple lines of code I want to change within the Contact Form 7 plugin. The function is called function…

bcoyour
- 133
- 1
- 1
- 5