Viewing 9 reply threads
You must be logged in to reply to this topic.
Just wondered if there was a way to remove the placeholder text in the fields of the default contact form when you start to type?
I had a look through the Contact Form 7 options and couldnt spot a setting.
As it is, typing in each field is a bit messy as you just add to the existing placeholder text – whereas I really want that text to be removed once you start typing.
Ah, that is not what I meant.
I know how to remove the text altogether, but I want the placeholder text to be displayed until you click in the field.
For example, on the mailchimp form, the placeholder text is shown, but disappears when you click on the field to type. But in the contact form, placeholder text remains visible and you just start typing over it.
For This you have to write custom script. Not built with with this theme.
Thanks,
OK. I will look into that.
Also – could you tell me why there is a second contact form plugin bundled with the theme? As far as I can tell, the free version of WP Forms does exactly the same kind of thing as Contact Form 7 but isnt used in the demo data.
Just puzzled why its included – and wondering if there is any benefit to using that over CF7?
Oh, OK.
It must have been installed by my website hosts as part of the default WordPress install.
This query does not require a custom script.
The solution is as follows:
1. In the Contact Form 7 settings use the syntax
placeholder “Your Name*”
instead of
placeholder=”Your Name*”
2. Add custom CSS
.wpcf7 ::placeholder {
color: #6d727c !important;
}
You must be logged in to reply to this topic.