AnnaNovember 22, 2013 at 3:09 pm #7734
In the files where you want to show m2 look for $unit
After $unit add this line
= esc_html( get_option(‘wp_estate_measure_sys’, ”) );
$unit=’m & sup2;’; (**remove the blank spaces)
Then search for square add delete
Thank youKsearchNovember 25, 2013 at 4:56 am #7979
Hi Anna! I tried to apply this but all I get is a “b” instead of “square meters” after the number.
This is how my “$unit” looks like:
`$unit = esc_html( get_option(‘wp_estate_measure_sys’, ”) ); $unit=’m²’;KsearchNovember 25, 2013 at 7:35 pm #8052
Ok Anna, go it to work. It seems it was an apostrophe ( ’ vs ‘ ) and (” vs “) and spaces mistake:
`esc_html( get_option(‘wp_estate_measure_sys’, ”) ); $unit=’m²’;
I’m very new to WordPress and programming languages, so couldn’t figure it out before.
Thanks for your attention!
K.PepeDecember 5, 2013 at 9:11 am #9260
Hi Anna, can you tell me the “file name” .php where I can edit the code for “m2” ?
I can´t fint it
ThanksAnnaDecember 9, 2013 at 9:37 am #10446
I posted the reply on Saturday, but it was not saved. Sorry for the delay.
pages with “square” are:
Let me know if you need more help.
AnnaMichaelFebruary 12, 2014 at 5:06 pm #22690
I purchased your theme a few days ago to build our new webpage with it. Of course, we have to to do a lot of adaptions like the here discussed. It took a bit of time before I found out how it works. To help others who want to adapt the same:
Finally it worked with this string:
esc_html ( get_option(‘wp_estate_measure_sys’, ”) );$unit=’m²’;
There where a few ´ and ” instead of ‘
I think in the next time I’ll have a lot of questions – ok, till later then. 😉
MichaelAnnaFebruary 13, 2014 at 2:24 am #22800
Thank you very much for the email and for the tip. Will wait for your updates then regarding the other changes.
Since you posted, I also wanted to update this forum. You can also use POEDIT to translate “square”, “feet” and “Meters” to a different kind of wording, even if the website is in English.
You must be logged in to reply to this topic.