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

iCalendar feed cron – Change to a different recurrence time

By default the theme runs a WordPress cron every 3 hours to synchronise the calendar availability based on the ical feeds imported into each property. If you wish to edit the  default value (3 hours) you can use the below directions. Install WP Crontrol plugin Edit ICAL CRON The cron job that checks for new feed […]

Custom Css – Change order on mobile devices for half map

If you wish to change the order of elements on half map results, put the map after the list, you can apply this custom css solution @media only screen and (max-width: 991px){ .full_map_container .row { display: flex; flex-direction: column; } #google_map_prop_list_wrapper { order: 2; } #google_map_prop_list_sidebar { order: 1; } .admin-bar #google_map_prop_list_sidebar, .admin-bar #google_map_prop_list_wrapper { […]

Technical: Location of MetaTag Description in Taxonomy Pages

In wprentals-core plugin – file wprentals-core.php you have this WordPress action add_action(‘wp_head’, ‘wpestate_add_custom_meta_to_header’); In the function of this action you have various meta tags for some situation. To remove the description tag for taxonomy just remove the line 293  print ‘<meta name=”description” content=”‘.strip_tags( term_description(”, get_query_var( ‘taxonomy’ ) )).'” >’; Or you can populate the term […]

Technical: Where to change email parameters?

The send email function are in wprentals-core plugin in misc/emailfunctions.php file There are several functions wpestate_select_email_type – which selects the email type wpestate_emails_filter_replace – replaces the placeholders (%invoice ) in content wpestate_send_emails – actually sends email If you look into the theme files for wpestate_select_email_type you will find around 32 occurrences for various scenarios If […]

Random Order for Search Results – Half Map

First of all please be aware that random order can dramatically increase the page loading time – especially when other database queries are made like in advanced search case.  We do not recommend this. If you want to go further in search_functions3.php file you have function wpestate_arguments_builder  http://prntscr.com/oplurg In this function you have an $args […]

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: Change Redirect Page after Booking Payment

The redirect code for after payment for when a booking is done works so that user is redirected to My Reservations page in user dashboard. The code is in below templates themes/wprentals folder The redirect can be done to a general link or another custom page template Ex: for a redirect link $redirect=​’http://yourdomain.com’;

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

The cron that checks the event for the automatic email “Send reminder email!” has the name: setup_wpestate_full_invoice_payment_reminder The cron runs daily and sends 1 automatic email to users who have a confirmed booking that starts 3 days before the current day. There is a maximum limit of 3 emails that can be sent (1 automatic […]

How to remove countries from the dropdown

If you want to remove,add or edit a country you need to do a small code change 1. Open file wprentals-core\misc\plugin_help_functions.php and at line 423 you have function wpestate_country_list_array To add a new country add the code like in the example bellow $countries = array( esc_html__(“Your Country”, “wprentals”), esc_html__(“Afghanistan”, “wprentals”), 2. Open wprentals\libs\help_functions.php and around […]

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

How to force user login on contact form

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. After 2.6 theme update In wprentals/js/property.js you must add the below code if( property_vars.logged_in===”yes” ){ jQuery(‘#contact_owner_modal’).modal(); enable_actions_modal_contact(); }else{ login_modal_type=2; $(‘#topbarlogin’).trigger(‘click’); } Before 2.6 theme […]

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