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:
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: How to show user contact info always, no matter if booking request is confirmed or not
To show always the contact you can do this change (left is modified code – right is original code) from templates/owner_details_header.php
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 Configure Guest Number Dropdown with Incremental Values
For Classic Guest Dropdown, the number of guests to show can be set from Theme Options > General > Booking Settings Help https://help.wprentals.org/article/how-to-manage-guest-options/#b_wpestate_id How to Change guest number in search with an incremental value In case want to change the guest dropdown that appears in the search front end with a dropdown that shows options in incremental […]
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 fix overlapping details issue in property unit when is used before and after price labels
Add this css in wp-admin – Appearance – Theme options – Design – Custom colors- Custom CSS: .price_unit_wrapper { right: auto; top: 23px; left: 15px; } .category_name { margin-top: 20px; }
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:
Technical: Make payments recurring by default
How to make the recurring box for membership recurring “Checked” by default In wprentals\user_dashboard_packs.php file at line 65 you have input type=”checkbox” name=”pack_recuring” id=”pack_recuring” value=”1″ replace that with input checked type=”checkbox” name=”pack_recuring” id=”pack_recuring” value=”1″ How to hide Recurring box for membership submission #pack_recuring { display: none; } [for=”pack_recuring”] { display: none!important; }
Technical: How to limit calendar in booking form
To limit the number of months on the booking form from the property page you must do the following In js/property.js file Look for the function check_in_out_enable2 (should be around line 150) and add this piece of code – replace 3 with your number of Months var futureMonth = moment(today).add(3, ‘M’); The above code […]
Formulas used in WpRentals Invoices
Formulas used: total = (inter price + expenses + manual_expense ) – early bird + city fee+ cleaning fee + sec deposit $early_bird_discount – doesn’t include extra guest, security, city fee, cleaning fee $you_earn = $total_price – $security_deposit – floatval($city_fee) – floatval($cleaning_fee) – $service_fee; $taxes = round ( $you_earn * $taxes_value/100,2); $price_for_service_fee = $total_price – $security_deposit […]
Hide Property ID from Property Page
The Property ID is a unique number automatically generated by WordPress for each listing. If you prefer not to display this ID on the property page, you can easily hide it using custom CSS. Steps to Hide the Property ID Go to Theme Options → Design → Custom Colors → Custom CSS. Add the following […]
How to change the numbers in dropdowns for bathrooms, rooms and bedrooms
Half Map Search File path wprentals/classes/rentalsSearch.php This changes value for all dropdowns (r0oms, bedrooms, bathrooms) If you wish different values for each dropdown you must add new code as in this example and than change the value to the one you wish for each field Search type and type 2 Change 15 with your chosen […]
Facebook SDK returned an error: Cross-site request forgery validation failed. Required param “state” missing.
If you get this error when using Facebook login Facebook SDK returned an error: Cross-site request forgery validation failed. Required param “state” missing. Add the following to functions.php in the child theme: add_action(‘init’, function() { session_start(); if ( isset( $_GET[‘state’] ) ) { $_SESSION[‘FBRLH_state’]=sanitize_text_field($_GET[‘state’]); } }); NOTE: this situation is specific to domain setup (if […]
Image is not showing on Safari browser.
Safari browser is sensitive to the images that contain special characters like ” or ç. This is related to a safari limitation. Only ASCII characters are allowed in URLs in Safari – IOS, and that does not include accented characters. Because of this limitation, if an image has accented characters in url, it will not […]
Remove connection between City and Area
In order to remove connection between City and Area delete the highlighted code ajax_functions_edit.php as displayed in this screenshot:
How to hide the categories number in advanced search dropdown
If you want to remove that information you need to remove (‘.$counter.’) from functions wpestate_get_category_select_list , wpestate_get_action_select_list,wpestate_get_city_select_list,wpestate_get_area_select_list and wpestate_get_status_select_list from wprentals/libs/help_functions.php file. To remove it for subcategories you need to do the same thing but for function wpestate_hierarchical_category_childen . For half map, search type 3 and 4 must make the same change on wprentals\libs\search_functions3.php and wprentals\libs\search_functions4.php
Facebook Share doesn’t share image or text. What to do.
On some servers Facebook cannot access the info from a property from first share attempt. This is related to Facebook not being able to get the data from your server. How to verify this applies for your situation. Go to https://developers.facebook.com/tools/debug/sharing If you use Open Graph Object Debugger you will see an error message like this: Error parsing […]