Home Forums Community Forum Contact form 7 not updating Avada theme contact form template

Only users with a registered purchase of Avada can post to the community forum. Please register your purchase here.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • jamesjjswin
    Participant
    Post count: 3

    Hi there!

    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!

    • This topic was modified 2 weeks, 3 days ago by  jamesjjswin.
    jamesjjswin
    Participant
    Post count: 3

    Anyone able to help with the above? ūüėä Thank you!

    marklchaves
    Participant
    Post count: 339

    Hello,

    First, go to your Contact page in your Avada theme. Edit it. Find the Contact Form 7 short code.

    https://cacoo.com/diagrams/FnqQMMdp5w2u7FIE-8D451.png

    Now, go to your wp-admin > Contact > Contact Forms.

    https://cacoo.com/diagrams/FnqQMMdp5w2u7FIE-8D451.png

    Find the form that’s embedded in your Contact page.

    Add your new field.

    https://contactform7.com/faq/how-can-i-add-a-field-to-my-contact-form/

    Hope that’s what you are asking.

    Have fun!

    jamesjjswin
    Participant
    Post 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!

Viewing 4 posts - 1 through 4 (of 4 total)
Only users with a registered purchase of Avada can post to the community forum. Please register your purchase here.