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

Theme Options-Design-Custom CSS

You may wish to modify some design elements and that may require using a custom css. You can add custom css in Theme Options > Design > Custom CSS. The modifications you do here are NOT overwritten when you do a theme update. The theme offers a basic child theme in the theme pack. This allows you to make changes to your site […]

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.      

Remove check in and check-out with css

If you wish to remove check-in and check-out fields from the search over header and search mobil, use this css Header search [id=”check_in”] {display: none;} [id=”check_out”] {display: none;} Result   Mobile search [id=”check_in_mobile”] {display: none;} [id=”check_out_mobile”] {display: none;} Result:

How to remove “Pay Invoice in Full” button from My Reservation

Use this css .info-container_booking .proceed-payment_full{ display:none!important; } Add in child theme style.css or in theme options – design – custom colors – custom css. Before adding the css, the button shows like this After adding the css, the button will be removed Help to add custom css – https://help.wprentals.org/article/3029/

Technical – How to change guest number dropdown

Related Technical Article:  Technical how to : Guest Dropdown Change guest number in search In case want to change the guest dropdown that appears in the search front end  you need to know that list is  is populated by a function called in advanced_search.php. $guest_list             =   wpestate_get_guest_dropdown(); The actual […]

Where the Early Bird fee is calculated? Where fees are calculated in Theme code ?

You should look in help_functions.php at function wpestate_booking_price (around line 557). We use this function to calculate all the fees, discounts etc in 90% of the cases. The early bird discounts are calculated around line 834 $early_bird_discount = wpestate_early_bird($property_id,$early_bird_percent,$early_bird_days,$from_date_discount,$total_price); Please note that due to theme update the line numbers might change, but the code will […]

Remove “You Earn” from Invoice Details

This is a workaround to not have to modify code. 1. Use this css to remove the total .invoice_row #youearned{ display:none!important; } 2. Use Loco translate / po to translate labels YOU EARN and we deduct…. by adding a blank space in translation. Full help http://help.wprentals.org/2015/12/21/how-to-modify-theme-text-in-english-with-poedit/

Remove breadcrumbs

You can remove breadcrumbs globally with this css element (add in Theme options – Design – Custom css) or in child theme – style.css .breadcrumb_container, .breadcrumb { display: none; }

Remove “Where do you want to go” with css for search type 1 and 2

Use this css for search type 1 and 2. #adv-search-1 #search_location { display:none; } .map_icon { position: relative; display: none; } .adv-search-1 { width: 149%; } No location field in search over header No location field in Half Map filters   Remove location for Advanced Search shortcode:   .adv_search_sh { display: none; } .map_icon, #search_location_filter_shortcode […]

How to show sidebar in owner page with no reviews

To enable sidebar for owner pages that doesn’t have reviews must comment highlighted code in owner_details_header.php and agent_reviews.php files as displayed in below screenshots: