WP Residence Help WP Residence Help

  • WpEstate
  • How to Build Your Website
  • Video Tutorials
  • CLIENT SUPPORT

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

How to add text to the Login / Register Icon in header

205 views 0

This is an example of CSS code that can help add text to the Login / Register icon in top – header .submit_action:before { content: “Add Property”; } .submit_action { float: left; display: flex; justify-content: center; flex-wrap: nowrap; align-content: center; align-items: center; flex-direction: row; }

Technical: add a different measurement for property lot size

412 views 0

To add acres or a different measurement instead of the default measurement set in Theme Options – General settings only for Property Lot Size, the following changes are needed Property details section Add this code $property_lot_size = floatval ( get_post_meta($post_id, ‘property_lot_size’, true) ).’ acres’; File path themes/wpresidence/libs/listing_functions.php ​ Example of where the code must be […]

Technical – How to change the order of properties in Properties Theme Slider

555 views 0

The below solution can change the order of properties by price. Add this code in wpresidence/libs/theme-slider.php ‘orderby’ => ‘meta_value_num’, ‘meta_key’ => ‘property_price’, ‘order’=>’DESC’  

Technical: Show register form first on the Register/Login

1318 views 0

To get the registration form first when open Register/Login must make code changes on control.js file and at line 1819 (3.7 theme version)  add jQuery(‘#widget_register_topbar’).trigger(‘click’); as shown on this screenshot: Helpful links Technical How to: Child theme If you use minify option in the theme options check this help:      How to make child […]

Technical: How to change default sidebar position for a new page

899 views 0

Go to plugins/wpresidence-core/misc/metaboxes.php Change the order of options for sidebar Original code screenshot Example with none as default option    

Technical: How to change the color of views bar in property page

577 views 0

The color of  view bar can be changed from wpresidence\js\property.js     You need to add backgroundColor like this datasets: [ { label: wpestate_property_vars.property_views, backgroundColor:”rgba(228,190,110,1)”, fillColor: “rgba(220,220,220,0.5)”, strokeColor: “rgba(220,220,220,0.8)”, highlightFill: “rgba(220,220,220,0.75)”, highlightStroke: “rgba(220,220,220,1)”, data: traffic_data }, ]

How to remove “Delete Property” from Dashboard -> Actions

1199 views 0

To remove “Delete property” option, you can use as easy solution below CSS: .property_dashboard_action .dropdown-menu>li:nth-of-type(2) { display: none; }  Help article for how to add custom CSS

Technical – How to replace property categories with property action in Agent page

954 views 0

This article will show how to replace the property categories from Agent page with property action The change needs to be done in theme  code in templates/agent_listings..php replace ‘property_category’ with property_action_category http://prntscr.com/u69boy  

Technical: How to remove theme logo from admin login page

769 views 0

To remove the custom logo on wordpress admin page just go into file word_remove.php and comment or delete this  add_action(‘login_head’, ‘wpestate_admin_login_logo’);  – at line 350

How to hide Agency and Developer City, Area, County and Address fields

1394 views 0

Add the following css to hide City and Area in submit   For developer profile .add-estate .developer_city_wrapper, .add-estate .developer_county_wrapper, .add-estate .developer_area_wrapper, .add-estate .developer_address_wrapper { display: none; } For Agency profile .add-estate .agency_city_wrapper, .add-estate .agency_county_wrapper, .add-estate .agency_area_wrapper, .add-estate .agency_address_wrapper { display: none; }  Help article for how to add custom CSS Tip: If you have theme […]

Technical: Hide a specific tab in property page (default template)

1462 views 0

How to hide the Details Tabs Please add the below css in Theme Options-> Design -> Custom CSS or in Child Theme -> style.css: #tab_prpg li a[href=”#details”] { display: none; } Help to add custom css for Residence Theme https://help.wpresidence.net/article/how-to-add-custom-css/ Please remember to clear cache to see results. Help for Residence https://help.wpresidence.net/article/enable-or-disable-wp-residence-cache/

Technical how to: Make only similar listings to show as List view

789 views 0

In order to make similar listings section in a property page to be in list view, make the change in wpresidence/templates/similar_listings.php add this code global $align; $align=’col-md-12′; around line 93  

Technical: Remove Trim Title from Property InfoBox

1114 views 0

The information is related to google maps infobox ​ In js/google_js/mapfunctions.js look for function wpestate_createMarker – around line 750 and replace this code var title= this.title.substr(0, 30); if(this.title.length > 30){ title=title+”…”; } with var title= this.title; Do the same for function wpestate_createMarker_sh at line 523 in the same file.

Technical: Change default user type in register form

1762 views 0

The “register code” is in wpresidence/libs/ajax_functions.php , function wpestate_ajax_register_user the user level is set via this code update_user_meta( $user_id, ‘user_estate_role’, $new_user_type) ; ​$new_user_type is set via $new_user_type = intval($_POST[‘new_user_type’]); Because of the intval function , if there is nothing in $_POST[‘new_user_type’] the value saved will be 0 You can set the value by checking $_POST[‘new_user_type’] […]

Technical – How to remove a category from dropdown list (search fields, properties list filters)

2258 views 0

To remove only specific categories from a list, can use a CSS trick, Attribute Tutorial: https://css-tricks.com/almanac/selectors/a/attribute/ ​ Apply this formula to theme search value you want to remove. Ex: To remove “Sold” from this dropdown Css Used: .filter_menu [data-value=”sold”] { display: none!important; } And should apply in header search and half map search Hide specific […]

Technical How to: Child theme

3565 views 0

Video Tutorials for How to work with a child Theme in WpResidence In this document we will try to explain how you can work with child theme in order to customize your website. The theme pack comes with an already made child theme – How to Install WpResidence Child theme Css code All the custom […]

Technical: Add a new filter to Property Directory List

1886 views 0

First of all, you need to add the new field in the sidebar list  – you do that in wpresidence/templates/directory_filters.php  The actual search is made via Ajax The js events are in wpresidence/js/property_directory_control.js.  ​ Add your event (click/change) and call function wpestate_directory_filtering_action in the same file In that function read the new field and send […]

Technical: Edit Open in Google Maps link with property latitude and longitude

2177 views 0

In wpresidence/libs/listing_functions.php at line 324 add this code $url= get_post_meta($post_id,’property_latitude’,true).’,’.get_post_meta($post_id,’property_longitude’,true); $google_map_url = “https://www.google.com/maps/@”.$url; or $url= get_post_meta($post_id,’property_latitude’,true).’,’.get_post_meta($post_id,’property_longitude’,true); $google_map_url = “http://maps.google.com/?q=”.$url; ​It should look like this

New Buttons Design – How to change hover effect

1564 views 0

This is the css for default button and hover color to apply and edit. .comment-form #submit, .wpresidence_button { text-shadow: none; margin-bottom: 15px; border-radius: 0; text-transform: capitalize; padding: 8px 34px; border: 1px solid; line-height: 2; border-color: #2470af; color: #fff; background-color: #2470af!important; background-image: -webkit-gradient(linear,left top,right top,color-stop(50%,transparent),color-stop(50%,#2470af)); background-image: linear-gradient(to right,transparent 500%,#2470af 50%); background-size: 200% 100%; background-position: right bottom; […]

Technical: Post date in property

1545 views 0

You can use WordPress code to add date through php file modifications https://codex.wordpress.org/Function_Reference/the_date The single estate property page is single-estate_property.php You can style it further as you wish by adding a custom class and then modifying the css for that class in custom css:

Change Font Awesome Icons in Unit Type 2

1852 views 0

Icons are added using below CSS: .property_listing.property_unit_type2 .property_listing_details .infobath_unit_type2:before{ content: “\f043”; font: normal normal normal 14px/1 FontAwesome; margin-right: 7px; } .property_listing.property_unit_type2 .property_listing_details .infosize_unit_type2:before{ content: “\f278”; font: normal normal normal 14px/1 FontAwesome; margin-right: 7px; } .property_listing.property_unit_type2 .property_listing_details .infogarage_unit_type2:before{ content: “\f1b9”; font: normal normal normal 14px/1 FontAwesome; margin-right: 7px; } .property_listing.property_unit_type2 .property_listing_details .inforoom_unit_type2:before{ content: “\f236”; font: normal […]

How to set the Google Maps API for China

1185 views 0

From Google website: The Google Maps APIs are served within China from http://maps.google.cn. When serving content to China, replace https://maps.googleapis.com  with http://maps.google.cn. The maps.googleapis.com is set in wp-content/themes/wpresidence/libs/css_js_include_helper.php Go on  wp-content/themes/wpresidence/libs/css_js_include_helper.php and replace  https://maps-api-ssl.google.com   with      https://maps.google.cn

How to remove first option from theme search taxonomies dropdown

2023 views 0

In theme we have 5 taxonomies: action, category, city, area and state. In search dropdown it has as the first option: -“Categories” for  action taxonomy, -“Types” for category taxonomy, -“Cities” for city taxonomy, -“Areas” for area taxonomy, -“States” for state taxonomy. They are available to help users find all categories after selecting one item – […]

How change price number format

2291 views 0

For theme version 3.9.1 and higher In order to change the number format must modify below files from: wpresidence\libs\help_functions.php ——————————- The details below will apply for older theme versions For price number format we use the number_format function. See this topic: http://php.net/manual/en/function.number-format.php In order to change the number format must modify below files from: wp-content/themes/wpresidence 2. wp-content/plugins/wpresidence-core Indian […]

How to increase the number of properties displayed in theme slider admin setup

1412 views 0

In theme options – theme slider setup the number of properties is limited to 50: To show more listing must setup  -1 setup for ‘posts_per_page’  in function wpresidence_return_theme_slider_list from  wp-content\plugins\wpresidence-core\misc\plugin_help_functions.php

Technical How to replace thumb for latest listing widget with another existing thumb 

1208 views 0

Code for latest listing widget is in plugins\wpresidence-core\widgets\footer_latest_widget.php file. It has two design types: slider and list. We use two thumbs depending of the design of it. For list type is used thumb named ” widget_thumb” For list type is used thumb named ” property_listings” In order to use another thumb you must change the existing […]

How to keep floor plans closed by default on property page. How to disable floor plan lightbox

1550 views 0

Go to libs\listing_functions.php and on   function estate_floor_plan  Delete style=”display:block”;  from variable $show How to disable floor plan lightbox Screenshot is from theme version 3.3 To disable floor plan, add return like in this screenshot in wpresidence/js/control.js file To remove the floor plan image link Remove href entirely as in this screenshot https://prnt.sc/tjfu1v in wpresidence/libs/listing_functions.php

Show agent images in full, without crop

972 views 0

To avoid using large images, the theme creates small versions of the original images uploaded and uses the small versions (thumbs) in different theme sections. For agents the theme uses the following thumb property_listings. Read more on thumbs here. To remove the resize rule for agent images you can edit the code as it follows. […]

Show portrait images in property slider without crop

2219 views 0

By default, we use a thumb version of the original image in theme vertical and horizontal sliders in order to keep page size to a minimum size. The slider images dimensions for a page with a sidebar is set to resize all images to 825×461 in the file called wpresidence/general-settings.php. Change the resize rule add_image_size(‘listing_full_slider’ […]

Technical – How to add more extra agents

1877 views 0

From speed reasons, the number of agents that will show in admin agent list from property page is limited to 150 of agents In order to remove the limitation, you need to go to wpresidence\libs\plugins\wpresidence-core\post-types and replace 150 with -1  

How to enable thumbs for vertical slider in responsive design

1178 views 0

The thumbs for property page gallery were removed from responsive for lack of design space, and the slider next/prev arrows are used to navigate between the slides. If you wish to add the thumbs – you can use this custom css http://prnt.sc/cnbm2u Show circles: @media only screen and (max-width: 640px){ .caption_control, #carousel-listing .carousel-round-indicators, .carusel-back, #carousel-listing .carousel-indicators, […]

How to Display Category Descriptions

2657 views 0

The theme uses the taxonomy description in page source for SEO reasons, however, you don’t see it visible on the category page as we allow users to add a different kind of content in such pages. Here is the code of a page with the category description showing (search engines read this value and index […]

How to change-auto-complete-address-rules-different-fields

1702 views 0

In order to change rules for autocomplete you need to go to wpresidence\js\google_js\ google_map_submit and change the levels as per your needs All details on Google geocoding can be found here: https://developers.google.com/maps/documentation/geocoding/intro This is helpful for the clients that use Google autocomplete feature and the input from Google is not accurate, for example,the city is saved as area. […]

How to stop Sending Edit Listing Notifications

1929 views 0

The emails sent from the theme can be managed from Theme Options > Advanced > Email Management. You can leave blank the subject field and the notification will NOT be sent. This applies to any notification from Theme Options > Advanced > Email Management.    

How to hide address elements from Add New property with custom css

2189 views 0

To hide address elements from submission form plaese use the below CSS.  The css needs to be added in Theme Options-Design-Custom Colors=-Custom CSS or Child Theme-Style.css 1.Address field [for=”property_address”] { display: none; } [id=”property_address”] { display: none; } 2. County/State [for=”property_county”] { display: none; } [id=”property_county”] { display: none; } 3. City [for=”property_city”] { display: […]

Older posts

WP Residence Documentation

  • 1. General
    • How to Get Support
    • Get your buyer license code.
    • Use SSL / https
    • Server / Theme Requirements
  • 2. Installation
  • 3. Installation FAQ
  • 4. Advanced Search
    • Advanced Search Display Settings
    • Advanced Search Form
    • Geolocation Search for Half Map
    • Save Search Theme Options
    • Advanced Search Colors
  • 5. Agent, Agency & Developers
  • 6. Property Page
  • 7. Properties List
  • 8. Property Taxonomies
  • 9. Property Custom Template
  • 10. Blog Posts & Blog List
  • 11. Shortcodes
    • Contact Form
    • Featured Agency/Developer
    • Membership Packages
    • Testimonials
    • Google Map with Property Marker
    • Listings per Agent, Agency or Developer
    • Display Categories
    • Agent List
    • Recent Items Slider
    • Recent items
    • List Properties or Articles by ID
    • Featured Agent
    • Featured Article
    • Featured Property
    • Login & Register Form
    • Icon Content Box Shortcode
  • 12. Widgets
  • Theme Options
    • General Settings
    • User Types Settings
    • Appearance
    • Logos & Favicon
    • Header
    • Footer Style and Colors
    • Price & Currency
    • Property Custom Fields
    • Features & Amenities
    • Listing Labels
    • Theme Slider
    • Permalinks
    • Splash Page
    • Social & Contact
    • Map Settings
    • Pin Management
    • How read from file works
    • General Design Settings
    • Custom Colors Settings
    • Header Design & Colors
    • Mobile Menu Colors
    • User Dashboard Colors
    • Print PDF Design
    • Property, Agent, Blog Lists Design Settings
    • Sidebar Widget Design
    • Font management
    • How to add custom CSS
    • Custom Property Card Unit – Beta version
    • Email Management
    • Import & Export theme options
    • reCaptcha settings
    • YELP API Integration
    • iHomefinder Optima Express IDX
    • MEMBERSHIP & PAYMENT Settings
    • Property Submission Page
    • PayPal Setup
    • Stripe Setup
    • Wire Transfer Payment Method
  • Translation
  • FAQ
  • Pages
  • Header
  • Footer
  • Google or Open Street Maps
  • Payment Options
  • Plugins
    • Included Plugins
    • Third Party Plugins – IDX Compatibility
    • Third Party Plugins – Multi Languages
    • Third party Plugins – Other
  • Technical
    • Technical how to | Custom Code Required
    • Technical: Child Theme
  • Theme Updates

Join Us On

Powered by WP Estate - All Rights Reserved

  • WpEstate
  • How to Build Your Website
  • Video Tutorials
  • CLIENT SUPPORT