Your address will show here +12 34 56 78

Home Forums WP RESIDENCE – Real Estate WordPress Theme FORUM How to add more measurement systems in WP Residence

This topic contains 0 replies, has 1 voice, and was last updated by  Anna 2 years, 8 months ago.

  • Author
    Posts
  • #102491

    Anna
    Keymaster

    1. go into theme-admin.php at line 1333 and add your unit into that array – see the ex below

    $measure_array=array(

    __('feet','wpestate') =>__('ft','wpestate'),

    __('meters','wpestate') =>__('m','wpestate'),

    __('you unit','wpestate') =>__('xxx','wpestate'),

    );

    if you want to remove the small 2 after do a search in all your theme files (you code editor should do that ) and remove this code ” 2

    To remove with CSS try adding into css


    sup{
    display:none;
    }

    To remove measurement from infobox

    js/google_js/map_functions.js

    Around line 266 you have

    var infosize;
    if(this.size!=''){
    infosize =''+this.size;
    if(mapfunctions_vars.measure_sys==='ft'){
    infosize = infosize+ ' ft2';
    }else{
    infosize = infosize+' m2';
    }
    infosize =infosize+'
    ';
    }else{
    infosize='';
    }

    Remove from there.

    Thank you

You must be logged in to reply to this topic.