• Resolved dreamy

    (@maryann17)


    Hello, is there a way to customize the template of the pages? For example, the trip details made in a tabs, select date and form?
    Can I use page builder to do that or can I create a new template file? Thank you so much.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support WP Travel Engine Support

    (@wptravelenginesupport)

    Hi @maryann17,

    WP Travel Engine allows the customization and modification of Single Trip Tabs templates. You can follow the WP Travel Engine – Developer documentation to override the template files.

    However, the select date and form are not customizable yet. Customization through Elementor Page Builder is not available yet for WP Travel Engine, but we have future projects lined up for it as well.

    Thanks!

    Thread Starter dreamy

    (@maryann17)

    Hello, thank you for replying. Is there also possible way to add some additional fields in the enquiry form?

    • This reply was modified 3 years, 12 months ago by dreamy.
    Plugin Support WP Travel Engine Support

    (@wptravelenginesupport)

    Hi @maryann17,

    You can add enquiry form fields using the ‘wp_travel_engine_enquiry_fields_display‘ filter hook.

    It filters the fields of the Enquiry form on the Trip single page. When adding a new field with this hook, a proper array structure should be maintained for the supported field type.

    Reference array structure:

    'enquiry_name'     => array(
                    'type'          => 'text',
                    'wrapper_class' => 'row-repeater name-holder',
                    'field_label'   => __( 'Your name:', 'wp-travel-engine' ),
                    'name'          => 'enquiry_name',
                    'id'            => 'enquiry_name',
                    'class'         => 'input',
                    'placeholder'   => __( 'Enter Your Name *', 'wp-travel-engine' ),
                    'validations'   => array(
                        'required'  => true,
                        'maxlength' => '50',
                        'type'      => 'alphanum',
                    ),
                    'default'       => '',
                    'priority'      => 10,
                    'default_field' => true,
                    'required_field' => true,
                ),

    You need to have detailed knowledge on overriding through hooks and filters. For reference check – https://docs.wptravelengine.com/docs/wp-travel-engine-developer-documentation/

    Please contact our support for further customization requests.

    Thanks!

    Thread Starter dreamy

    (@maryann17)

    Hello, to which specific file should I put those codes for example? Thank you.

    Plugin Support WP Travel Engine Support

    (@wptravelenginesupport)

    Hi @maryann17,

    You can override the enquiry form fields through the child theme’s functions.php file.

    Please refer to this for creating and customizing the child theme https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Customize template’ is closed to new replies.