Support Notes

How to add CSS code to admin dashboard via Child Theme
Please add this function to your MyHome Child Theme functions.php file with your custom CSS code (the one below example will change size heading 1 font size to 100px):   function admin_style() { echo ' <style> h1 { font-size:100px!important; } </style> '; } add_action( 'admin_head...
Tue, 8 Feb, 2022 at 7:43 AM
CSS Customization - center logo on mobile
Please use this CSS to center logo on mobile @media (max-width:1023px) { .logo_link { position: absolute!important; width: 100%!important; text-align: center!important; display: block!important; top: 0!important; right: 50px!important; padding-left: 100px!important; } }   In this article you can ...
Fri, 24 Jun, 2022 at 8:13 AM
How to display number field in the own customized way (property owner phone example)?
Create New Number Field e.g. Check slug of the field in your database, table: **_myhome_attributes   In our case, it is: owner-phone-number Visit your /wp-content/myhome/templates/content-single-estate.php . Add there sample code anywhere:   <h1> Owner phone number: ...
Fri, 24 Jun, 2022 at 8:14 AM
Property ID - How it works and how to customize via number field
In the current version of MyHome, property ID is generated automatically by WordPress   e.g. property below have ID: 113   WordPress ID is also 113   It is not possible to customize it because it is fully related to WordPress.   The only option to make it more flexible is to create new new number field ...
Mon, 14 Feb, 2022 at 5:35 PM
Print - not avialable
Unfortunately in the current version of MyHome, "Print" option is not available. It will be also hard to add it to the single property page via external plugin because there is a lot of JavaScript code there that cannot be printed automatically (e.g. Slider Images or Plan Accordions). We will consider add...
Tue, 8 Feb, 2022 at 7:43 AM
PHP Customization - how to add redirect after purchase (Only for Woocommerce system)
  This article shows how to redirect the user after purchase of WooCommerce Package to any page you wish.    Please use this code in your Child Theme functions.php . You can read more about Child Themes here:  How to use Child Theme? add_action( 'template_redirect', 'woocommerce_red...
Fri, 24 Jun, 2022 at 8:17 AM
PHP Customization - moderation property after edit - (for Agens, Agency roles)
If moderation is turned on and the user (agent) edits the published listing - MyHome will require the listing to be approved again by the administrator.    If you wish to automatically accept all changes please use this code in your Child Theme functions.php add_filter( 'myhome_property_status',...
Fri, 24 Jun, 2022 at 8:18 AM
PHP Customization - changing sort by newest query from date to modified
  This PHP code change query order grom newest to modified.  Important: Make sure you use the latest version of MyHome Theme and MyHome Core.    Example:   You added a property one month ago and changed the images to the newest, and you want to show this property on the first page. This code...
Fri, 24 Jun, 2022 at 8:18 AM
PHP Customization - add username in Arabic for register page
This PHP code added function to Wordpress for Username can be write in Arabic add_filter('sanitize_user', static function ($username, $rawUserName, $strict) { if (!$strict) { return $username; } return sanitize_user(stripslashes($rawUserName), fal...
Fri, 24 Jun, 2022 at 8:19 AM
PHP Customization - redirect after submit property
  This PHP code redirects user after submitting the property form.   Info: You need to disable this option:    add_filter('myhome_panel_after_save_property_redirect', function() { return 'https://example.com'; });   Change https://example.com to your link. Please...
Fri, 24 Jun, 2022 at 8:19 AM