Technical how to

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

Technical: KML layers to Google Maps

If you wish to add KML layers to Google Maps https://developers.google.com/maps/documentation/javascript/examples/layer-kml The file to edit in Wp Rentals is File path: wprentals/js/google_js/maps_base.js

Technical: How to change number of days before payment due (Send Reminder Email)

The cron job responsible for sending the automatic “Send reminder email!” is named: setup_wpestate_full_invoice_payment_reminder What This Cron Does It runs daily. It sends 1 automatic email to users with confirmed bookings that are scheduled to start 3 days from the current day. There is a maximum of 3 reminder emails allowed per booking: 1 automatic […]

How to remove countries from the dropdown

Modify the list of countries shown in the dropdown Locate the country listOpen libs/help_functions.php and find the function wprentals_return_country_array().It returns the full list of countries used throughout the theme: if (!function_exists(‘wprentals_return_country_array’)): function wprentals_return_country_array() { $countries = array( ‘Afghanistan’ => esc_html__(‘Afghanistan’, ‘wprentals’), ‘Albania’ => esc_html__(‘Albania’, ‘wprentals’), ‘Algeria’ => esc_html__(‘Algeria’, ‘wprentals’), // … ); // return $countries; } endif; }​ […]

Tehnical: How to remove items from theme search auto-complete

In theme we have option to use theme auto-complete for Location. See this help where is explained how to setup it: https://help.wprentals.org/article/how-to-disable-google-places-in-search-and-submit-how-to-enable-advanced-search-with-theme-auto-complete/ Data from autocomplete sums all details saved for each listing in these fields: City, Area, County, State, Country –> To remove from theme auto-complete data from City field must remove highlighted code from function event_wp_estate_create_auto_function from  wp-content\themes\wprentals\libs\events.php file. –> To remove […]

Remove custom price calendar table from listing page

Go to libs\listing_functions.php file and  from function wpestate_show_custom_details ()  remove the code between  line 368 to 580 that is inside to if(is_array($mega)){}. Hide with custom css .custom_day_wrapper { display: none; } @media only screen and (max-width: 1024px){ .custom_day_wrapper_mobile { display: none!important; } } How to add custom css – https://help.wprentals.org/article/customcss

Show full images in property unit without crop

In theme we have 3 design types for property unit. The images that show in the card unit are a thumb version (smaller size version of the original images) which help with speed optimization. The thumb is generated in wprentals/libs/general-settings.php  The specific line that creates the thumb is add_image_size(‘wpestate_property_listings’ , 400, 314, true); Files with […]

Technical: Remove a section from front end submit form

This is an example for how to remove amenities section. Delete the Amenities from  submission header   Go to wprentals\templates\submission_guide.php  file and delete highlighted code displayed on below screenshot: 2. Delete the Amenities from  dashboard left menu area Go to wprentals\templates\user_menu.php file and delete highlighted code displayed on below screenshot:     3.  Redirect Save button from Location step to Calendar. Go to templates\submit_templates\property_location.php […]

Show images in property slider without crop

The code for carousel vertical is in templates/property_pictures3.php file. Images are resized using these resize rules: listing_full_slider,  listing_full_slider_1 and wpestate_slider_thumb To remove the resize rule for images must edit templates/property_pictures3.php and replace above resize rules with full. Next must add below css in Theme options – Design – Custom CSS ( help:  https://help.wprentals.org/article/3029/ ) .carousel-inner .fancybox-thumb img { height: 337px!important; width: auto!important; […]

Technical – How to force user login on contact form

Updated in January 2024 for latest theme versions By default, a non logged user can contact any listing owner. If you want to force users to be logged in before contact property owner you need to do this change. In wprentals/js/property.js , function wpestate_show_contact_owner_form  (around like 1380) you must add the below code function wpestate_show_contact_owner_form(booking_id, […]

Theme Options – Design – Custom CSS

You may wish to modify some design elements, which may require using custom CSS. You can add custom CSS in Theme Options > Design > Custom CSS. The changes you make here will not be overwritten when you update the theme. To see the CSS changes, you may need to clear cache from WpRentals Cache (if […]

How to remove menu items from property page with custom CSS

You can remove the menu items from property page with custom CSS:  For Description use: .property_menu_wrapper_hidden a:nth-of-type(1) { display: none; } For Price use: .property_menu_wrapper_hidden a:nth-of-type(2) { display: none; } For Details use: .property_menu_wrapper_hidden a:nth-of-type(3) { display: none; } For Amenities use: .property_menu_wrapper_hidden a:nth-of-type(4) { display: none; } For Availability use: .property_menu_wrapper_hidden a:nth-of-type(5) { display: […]

Where are properties stored in WordPress database

All the property info is kept in wp_post table in your wordpress database. Additional information is also kept in wp_postmeta table. You can check the whole database structure (we are using wordpress default database and do not add new tables) here: https://codex.wordpress.org/Database_Description

Technical: How to select only one Extra Option in Booking form

If you have more than one extra options and you wish to be able to check only one you need to make the below changes: In  help_functions.php in function wpestate_show_extra_options_booking, replace checkbox with radio as per the below screenshot After you will need to adjust the radio buttons with custom css .cost_explanation input[type=”radio”] { height: […]

Contact Form 7 Custom CSS to match theme forms design

button, html input[type=”button”], input[type=”reset”], input[type=”submit”]{ margin-top: 0px; padding: 13px 15px; color: #fff; background-color: #4d5567; font-size: 16px; font-weight: 600; width: 327px; margin-bottom: 0px; border-radius: 2px; } .wpcf7-form-control-wrap input[type=text], .wpcf7-form-control-wrap input[type=password], .wpcf7-form-control-wrap input[type=email], .wpcf7-form-control-wrap input[type=url], .wpcf7-form-control-wrap input[type=number], .wpcf7-form-control-wrap textarea { background-color: #fff; border: 1px solid #e7e9ef; color: #8A8F9A; height: 50px; padding:15px; } .ui-widget .ui-widget { font-size: 1em; […]

HOW TO: admin needs to approve listings after each edit.

The idea is to change the property status into pending everytime someone make an edit. There may be a “logistic” problem since there are 7 separate functions that edit a property and you will have to add code in each of these function: -> for description – function is wpestate_ajax_update_listing_description add this code for price […]

How to show properties as lists in standard layout

The below change will apply for lists in the theme. The change needs to be done in wprentals/templates/normal_map_core.php  The property unit needs to be replaced with property_unit_wide as in the below screenshot.