Technical how to | Custom Code Required

This technical help has been written by our development team based on the answers/directions provided to our clients who have asked for directions to modify the code. We published them hoping that they will help other clients with similar requests implement the modifications faster.

Please keep in mind that theme customization services ARE NOT included in the client standard support. Our support team cannot do code modifications for you.

Item support is a service provided directly by us through the FreshDesk ticket system. Support is limited to questions regarding the theme’s features or problems with the theme. We are not able to provide support for code customizations or third-party plugins.

Please read the full Themeforest support policy is available here for further information (https://themeforest.net/page/item_support_policy).

Technical how to: Advanced Search explained – advanced search forms

How advanced search forms are displayed The advanced search forms are displayed via advanced_search.php. Here we load different templates accordingly to the what type of search you selected. if ($adv_search_type==1){ include(locate_template(‘templates/advanced_search_type1.php’)); }else if ($adv_search_type==3){ include(locate_template(‘templates/advanced_search_type3.php’)); }else if ($adv_search_type==4){ include(locate_template(‘templates/advanced_search_type4.php’)); }else if ($adv_search_type==5){ include(locate_template(‘templates/advanced_search_type5.php’)); }else if ($adv_search_type==6){ include(locate_template(‘templates/advanced_search_type6.php’)); }else if ($adv_search_type==7){ include(locate_template(‘templates/advanced_search_type7.php’)); } else if ($adv_search_type==8){ […]

Remove infobox on property page map

Question : How to remove infobox on property page map Answer: Solution 1 If the map is embed in the picture slider Please go into google_map_code_listings.js and remove below line google.maps.event.trigger(gmarkers[found_id], ‘click’); If not go into mapfunctions.js and remove google.maps.event.trigger(gmarkers_sh[0], ‘click’); Solution 2 Use below CSS: .single-estate_property .info_details { display: none; } Help for custom css: https://help.wpresidence.net/article/how-to-add-custom-css/

Technical how to : change agent details ( in agent page)

The agent page  is displayed by the file single-estate_agent.php . In this page there are 3 main components: The agent details which is located in templates/agentdetails.php Here we display the agent details like phone, skype etc. The details are saved as custom meta for the estate_agent custom post type. They are retried using get_post_meta $agent_phone = esc_html( get_post_meta($post->ID, […]

Technical how to : change property submission page details

The property submission page is user_dashboard_add.php . On this page we check the submission info submitted by users and if everything checks out we add or edit the property. The actual front end page – where the users submit the data is split between several pages. We start with templates/front_end_submission.php and then we load various modules […]

Technical how to : change property page details

The property page is displayed using the single-estate_property.php file. On the property page you can pick between two types : horizontal and vertical. You can set a global slider value (to be applied on all listings) or you can pick one per page. This is the code that loads the slider: if ($local_pgpr_slider_type_status==’global’){ $prpg_slider_type_status= esc_html ( […]

Technical how to : Default property fields

Besides the default properties, details like title, images or description the WPResidence features some real estate specific fields like address, geo coordinates, price, size etc… These default fields are set in wp-content\plugins\wpresidence-core\post-types\property.php  with the function details_estate_box (). These fields are saved as meta options of the custom post type property. To retrieve these fields you need to […]

Technical how to : Custom fields

The custom fields for properties are saved as an wordpress theme option. In order to view them all you can use this code $custom_fields = wpresidence_get_option( ‘wp_estate_custom_fields’, ”); print_r($custom_fields); ***the code above is not for production sites If you did print the custom fields arrays you will see that we have stored the name, the […]

Technical how to : Add details to property card unit (in property list)

In WpResidence you can choose between 7 built-in property cards for properties that will be used in all lists, in grid view, or list view by default. You can choose a default built-in property card or you can work on a custom unit by using the Custom Property Card Unit builder (beta version). Help article […]

Technical how to: Footer Contact form

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 […]

Technical how to : Integrate new payment gateway

There are 2 main places where you should add your code when adding a new payment gateway: The places where you put the pay now buttons and send requests to the payment processor servers. A new page where the processor server will send the response to your transaction (accepted, rejected etc). Where to add the […]

Email : Extra parameters on contact form email

Question:  Is there a way using your custom form or to pull the listing page metadata into the email? Example: Listing Title: Price: Property ID: Property Address: Answer : The answer is yes. You need to edit the file  misc/emailfunctions.php from  theme plugin:  wpresidence-core. In there you have function wpestate_ajax_agent_contact_form. There is 2 types of emails – […]

Technical: Remove or Change content from default Property Page template

Question: How do I remove content from property page? Answer : There are 2 PHP files now that are listed based on the options set Single-estate_property calls the design – accordion or tabs – from a different template : templates/property_page_acc_content.php Single-estate_property calls the tabbed n content from a different template. : templates/property_page_tab_content The information is displayed using various […]

Technical: How to delete Sort Filters from properties list or advanced search results

Filters can be removed using custom CSS or directly from code. CSS Solution For Advanced Search Sort Filters.  Also, it applies to order filters from the property list page. .advanced_filters .order_filter_single [data-value=”3″] { display: none; } [data-value=”3″] Hides 3rd value in dropdown in this example. ​For property list use below cSS: .listing_filter_select.order_filter .filter_menu li:nth-of-type(4) { […]

Technical: Registration HTML code

Question: Where is the user registration html code ? Answer: The registration html code that is on header is located on top_user_menu.php file. Please note that there is also a widget (wp-content\plugins\wpresidence-core\widgets\login_widget.php)  and a shortcode on wp-content\plugins\wpresidence-core\shortcodes\shortcodes.php

Technical: How to make mobile advanced search open by default

To make mobile search open by default add this CSS in Theme options > Design > Custom Css @media only screen and (max-width: 768px){ #adv-search-mobile { display: block!important; } } Help article about how to add custom CSS Result: Tip: If you have theme cache enabled, make sure you clear cache to see instant results.