Dear Customers! We're out of the office from the 6th of October to the 11th of October. We sincerely apologize for the inconvenience. For WordPress 5.5.* related issues, please visit this article

Okay
  Public Ticket #1633866
Customizing Contact Form
Closed

Comments

  • Derrick Russell Greenhalgh Lapaz started the conversation

    Just like to know which one is the php file to modify contact form fields (I want "Telf" instead of "Subject" for example. Or maybe add more fields...) and I have only found this code in template-contact.php:


    // Contact Form

    ?>

    <div id="contact-page-content" class="row">

    <div class="contact-form-column col-md-<?php echo esc_attr( $col_form_width ); ?>">

    <?php

    if ( class_exists( 'Engage_Core' ) ) {
    echo do_shortcode( '[engage_contact_form]' );
    } else {
    echo '<p class="engage-core-absence">' . esc_html__( 'Please install and activate the Engage Core plugin to use the contact form.', 'engage' ) . '</p>';
    }

    ?>
       
        </div>
        
        <?php
        
        if ( engage_option( 'contact_layout' ) != 'fullwidth' ) {
         l
        echo '<div class="contact-content-column col-md-' . $col_content_width . '">';
        
        // Page Content Loop
        
        if (have_posts()) : while (have_posts()) : the_post(); 
                
        the_content(); 
       
        wp_link_pages();
                  
        endwhile; endif; 
        
        echo '</div>';
        
        }
        
        ?>
        
        </div>
        
        </div>


    Thanks


  •  255
    Joanna replied

    Hi Derrick,

    The built in Contact Form is just a basic one, only customise it if you are totally confident with adding your own custom code and functions to the Child Theme functions.php.

    The original file is: engage-core\shortcodes\lib\contact-form.php

    If not, use a contact form builder as that will have lots more options for you to use, such as Contact Form 7 or Gravity Forms


    Kind regards,
    Joanna
    Veented Support

    Find a helpful article for your theme here: https://veented.ticksy.com/articles/#article-categories

    Check out our latest article: How to Improve Page Loading Times

    Don't forget to hit the like button below if you are happy with your support answer :)