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).

How to display decimals on default property price

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

Edit Breadcrumbs URL

The breadcrumbs are in templates/breadcrumbs.php. If you want to change the way they are displayed you can modify the file. Please note that there some check in there like if the page is a category or if is a front page if( $category!=”){ print ‘<li>’.$category.'</li>’; } if(!is_front_page()){  

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; } } Result: How to add Custom CSS directly in theme options – http://help.wpresidence.net/article/how-to-add-custom-css/

Show Login Modal After User Successfully Register

Please add the following code in ajaxcalls.js as displayed in below screenshot: setTimeout(function(){ jQuery(‘#widget_login_topbar’).trigger(‘click’); }, 3000); After the “you can login” message is displayed the script will wait for 3 seconds and then display the login form. If you want to change the waiting duration replace the 3000 with your number (1sec = 1000 )

Remove decimals from size number format

To remove decimals from measurement units must change number format for size value to not include decimals. Help for number format issue: http://php.net/manual/en/function.number-format.php Screenshot with the place where must change it The file where you must make the change is help_functions.php

Property Card – How to open in new page

For both WpResidence and WpEstate theme you need to edit the file templates/property_unit.php For the links that want to open in a new page you need to add target=”_blank”. Please note that there are several places where you need to make this change – Look for the

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