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. If you need help with anything other than minor customizations of your theme, we suggest searching for a WordPress developer on studio.envato.com.

Full Themeforest support policy is available here for further information (https://themeforest.net/page/item_support_policy).

Advanced Search Results Ordered by Price

I want to ask how can sort the results of the advanced search page, ordered by price is my goal. —answer— Instruction before 1.10 theme update advanced_search_results.php Look for ‘meta_key’ => ‘prop_featured’, ‘orderby’ => ‘meta_value’, ‘order’ => ‘DESC’, Replace with ‘meta_key’ => ‘property_price’, ‘orderby’ => ‘meta_value_num’, ‘order’ => ‘ASC’, Make sure you write PHP, not copy/paste. […]

Order by EDIT DATE

In wordpress there are 2 order situations by date: – first publish date – edit publish date We use order by first publish date and edit date is not considered. So default order will consider the first publish date. The technical solution is to modify the query orderby, but it’s sensitive when working with custom […]

How to make Similar Listings by the same City

Go to templates/similar_listings.php Remove or comment the code below //////////////////////////////////////////////////////////////////////////// /// compose taxomomy action array //////////////////////////////////////////////////////////////////////////// And below //////////////////////////////////////////////////////////////////////////// /// compose taxomomy categ array //////////////////////////////////////////////////////////////////////////// Screenshot Original code   After code is modified

Order Properties List by Publish Date

In wordpress there are 2 order situations by date: – first publish date – edit publish date We use order by first publish date and edit date is not considered. So default order will consider the first publish date. The technical solution is to modify the query orderby, but it’s sensitive when working with custom […]

Remove space between currency symbol and price

In order to remove space between currency and price you must make code changes in function wpestate_show_price from wpresidence/libs/help_functions.php The edit must be done in several places, same file. Do a file search by $currency name to find all the places.

How to add icons to Featured and Amenities

In order to add icons to features and amenities from property page must build CSS for each element using :nth-of-type() and before css  selectors . !!! This workaround works only if is setup to display all features and amenities!! Example: First remove exiting icons using below CSS: For accordion #accordion_prop_features .listing_detail i { display: none; } […]

How to limit google autocomplete suggestions to a single country

To achieve above you must add  component Restrictions in the google_map_submit.js file   as displayed in  below screenshots: Add  componentRestrictions: {country: ‘fr’}  at line ~ 221 2. Add  componentRestrictions: {country: ‘fr’}  at line ~247 3. Add  componentRestrictions: {country: ‘fr’}  at line 273 For google radius search from half map make the change in control.js file  

How to force google autocomplete to return results in one language

By default the API detects the browser settings of the user and set the language appropriately. To force google autocomplete to return results in one language must add language for autocomplete. Add highlighted code in css_js_include.php as displayed in  below screenshot:

How to add Whatsapp share button in default property page

To add Whatsapp share in property page add below code in single-estate_property.php file <a href=”whatsapp://send?text=<?php echo urlencode (get_the_title() .’ ‘. get_permalink()); ?>” data-action=”share/whatsapp/share”><i class=”fa fa-whatsapp”></i></a> Screenshot: For property pages build using custom page template must add the new share option in function wpestate_estate_property_design_intext_details ()  from libs\property_page_shortcodes.php file. Please note that support is limited to questions regarding the […]

How to change design of Featured status and Full info button in default unit

To change design of Featured  status change CSS in this class: .featured_div { max-width: 85px; float: left; background-color: #f1bf7f; color: #333333; position: relative; left: 0px; font-size: 12px; border-radius: 0px; padding: 1px 18px; line-height: 17px; background-image: none!important; margin-bottom: 4px; } To change design of Full info button change CSS in these classes: .unit_details_x a, .unit_details_x { […]