WP Residence Help WP Residence Help

  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API
Home / Technical how to | Custom Code Required / Technical how to: Footer Contact form

Technical how to: Footer Contact form

4969 views 0

The WPResidence has 2 buttons that becomes visible when you scroll the page. One of these buttons is a contact button.

When you press the button a contact form is appearing. The contact form is displayed via a javascript event that is in control.js

$('.contact-box ').click(function(event){
event.preventDefault();
$('.contactformwrapper').toggleClass('hidden');
contact_footer_starter();
});

*** the contact form is already inserted into the page (the code is in footer_buttons.php ) but hidden via CSS ( class hidden from bootstrap).

After the contact form appears, you fill it with details, and you want to send the message by pressing the send button. The message is sent via ajax actions.

The javascript event for this is at control.js, while the PHP function that sends the email is wpestate_ajax_agent_contact_form() in plugins/wpresidence-core/misc/emailfunctions.php (please note that since 4.7.1 this function will be used by all contact forms)

How to hide the button

Hide the contact button with custom css

.contact-box {
display: none;
}

You can add custom CSS in Theme Options – Design  – Custom CSS. The modifications you do here are NOT overwritten when you update a theme.

Add the custom css and SAVE

IMPORTANT! Must Clear theme cache to can see changes on site front end.


 

Technical how to | Custom Code Required

Related Articles

  • Technical: Change the Schedule Tour Email Text and the Form Default Message
  • Property list filter customization
  • Technical – How to Change the Minimum Image Dimensions for Property Uploads in WPResidence
  • Introduction to WPResidence Header Customization

Help Categories

  • 18Agent, Agency & Developers
  • 5Blog Posts & Blog Lists
  • 39Elementor Shortcodes Built-In
  • 53FAQ
  • 15Footer
  • 5Getting Started
  • 37Header
  • 2IDX & MLSImport
  • 6Installation & Setup
  • 24Installation FAQ
  • 23Maps & Location Settings
  • 21Multi-Language - Third Party Plugins
  • 6Other Third party Plugins
  • 21Pages
  • 4Payments & Monetization
  • 20Property Lists, Categories & Archive
  • 37Property Pages & Layouts
  • 32Search & Filtering
  • 162Technical how to | Custom Code Required
  • 8Technical: Actions and filters
  • 7Technical: Child Theme
  • 86Theme Options & Global Settings
  • 7Translations & Languages
  • 16WPBakery Shortcodes
  • 50WPEstate / WPResidence Translate Plugin
  • 51WPResidence / WPEstate CRM
  • 50WPResidence 5.0 Documentation
  • 9WPResidence Elementor Studio

Join Us On

Powered by WP Estate - All Rights Reserved
  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API