HomePage › Forums › Themes Support › Luxtower – Single Property WordPress Theme › Apartments info
- This topic has 3 replies, 2 voices, and was last updated 1 year, 2 months ago by Billy Nguyen.
-
AuthorPosts
-
February 20, 2023 at 8:04 pm #32013AlessandroSupport Expired
Hi,
I would like to know how I can change info associated to an apartment. For example insted of having “Bedroom”, “Bathroom”, “Kitchen” etc… have different wordings and on property grid showed on homepage, have different icons.Let me know.
Best Regards,
AlessandroFebruary 21, 2023 at 5:03 pm #32039Please go to the file wp-content/themes/luxtower/inc/template-functions.php, find function luxtower_render_html_property_meta() and edit.
function luxtower_render_html_property_meta() { $id = get_the_ID(); $unit = apply_filters('luxtower_property_apartment_unit', 'm2'); $bedrooms = get_post_meta(get_the_ID(), 'luxtower_repeat_property_bedroom', true); $bathrooms = get_post_meta(get_the_ID(), 'luxtower_repeat_property_bathroom', true); ?> <ul class="property-meta"> <?php if ($bathrooms) : ?> <li> <i class="luxtower-icon-bathroom"></i> <?php echo sprintf('<span class="type">%s %s</span>', count($bathrooms), esc_html__('Bathrooms', 'luxtower')); ?> </li> <?php endif; ?> <?php if (get_post_meta($id, 'luxtower_total_area', true)): ?> <li> <i class="luxtower-icon-sqft"></i> <?php echo sprintf('<span class="type">%s %s</span>', get_post_meta($id, 'luxtower_total_area', true), $unit); ?> </li> <?php endif; ?> <?php if ($bedrooms) : ?> <li> <i class="luxtower-icon-bedroom"></i> <?php echo sprintf('<span class="type">%s %s</span>', count($bedrooms), esc_html__('Bedrooms', 'luxtower')); ?> </li> <?php endif; ?> </ul> <?php }
Edit title, icon class.
February 21, 2023 at 6:58 pm #32049AlessandroSupport ExpiredHi, thanks for this.
Regarding the info when I create an apartment? How do I change wording?February 22, 2023 at 9:33 am #32089Please go to wp-content/themes/luxtower/inc/merlin/includes/property.php, find the function create_meta_box() and edit code: https://prnt.sc/UUky1-qMMWWT
-
AuthorPosts
You must be logged in to reply to this topic.