jamesjjswinParticipantSeptember 28, 2019 at 3:22 pmPost count: 3
I’m trying to do the most simplest of things: add in a new ‘Telephone number’ field to the Contact Avada page template Contact Form, but when I edit the Contact Form 7 template, it makes no changes to my live site.
I’m up-to-date with everything, I’ve tried deactivated and reactivating the Contact form 7 template. I’ve found the contact_form_template.php in Contact-form-7/includes directory, but not convinced I won’t mess it up by editing it (I don’t recognise some of the syntax)
How can I edit the fields available on the form for the Avada Contact page template?
Thanks!jamesjjswinParticipantOctober 7, 2019 at 2:01 pmPost count: 3
Anyone able to help with the above? 😊 Thank you!marklchavesParticipantOctober 8, 2019 at 8:49 amPost count: 873
First, go to your Contact page in your Avada theme. Edit it. Find the Contact Form 7 short code.
Now, go to your wp-admin > Contact > Contact Forms.
Find the form that’s embedded in your Contact page.
Add your new field.
Hope that’s what you are asking.
Have fun!jamesjjswinParticipantOctober 9, 2019 at 12:11 pmPost count: 3
Thanks for the reply, much appreciated!
There is no short code on my Contact form page; that’s because it utilises Avada’s page templates (https://theme-fusion.com/documentation/avada/pages/page-templates/) and so the form is referenced *somewhere* in a php file. I can see that the Contact Form.php file in the Avada theme uses a function in this way:
<div class="post-content"> <?php the_content(); ?> <?php do_action( 'avada_add_contact_template_contents' ); ?> </div>
I’m guessing the relevant html is being pulled in from the ‘do_action’: I can’t find where to edit that html.
In the Contact Form 7 plugin, I can see only 1 form – which I assumed was the default and hence the one included in the template, but when I edit that form, those changes are not carried across to my contact page (which, as mentioned above, utilises Avada’s Contact page template).
(The reason I want to use the Contact template is that it also includes a customised map at the top, and I’d lose that/have to learn how to include that manually, and this seemed the easier thing to tweak!)
So yes, unfortunately it doesn’t solve my problem, I think I need to know where to go and manually change the contact page template…hope that makes sense!
- You must be logged in to reply to this topic.