Your account expired support, please renew to get your support.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #32013
    Alessandro
    Support 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,
    Alessandro

    #32039

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

    #32049
    Alessandro
    Support Expired

    Hi, thanks for this.
    Regarding the info when I create an apartment? How do I change wording?

    #32089

    Please 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

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.