Few issues
This topic contains 12 replies, has 3 voices, and was last updated by imagine.web.creation 8 years, 10 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
May 20, 2016 at 1:22 pm #195013
Hi
i am facing different issues.1. How can i remove the name of the country on each add ? Cause i am only active for national firms in my directory. So this country information is not needed.
2. On the homepage’s map, we do have the map pointers to show each add. When clicking on it, some informations are appearing. I do only have the name of the location. Where can i go to configure that and to choose what should appearing or not?
3. I have a field that is called “Prix de Vente” which is Selling price in English. I have big numbers so i need them to appaear clearly. Now it looks like CHF 1500000 and i d like them to appear like that CHF 1’500’000. How can i do that?
Thanks in advance
May 20, 2016 at 9:03 pm #195396Hi,
please provide a link so that we can inspect your website.
Images can’t be inspected.
Thanks
May 20, 2016 at 9:16 pm #195404This reply has been marked as private.May 21, 2016 at 4:01 pm #1957331) add this to gd > design > scripts > custom css:
span[itemprop="addressCountry"] { display: none; }
2) There are no options for that, it will require custom code, please see: https://wpgeodirectory.com/support/topic/how-do-i-remove-the-review-and-login-option/#post-193072
3) I can’t see any easy way to do this. probably it can be done with Javascript, but I’m not 100% sure.
I asked to the developers to check and let us know.
Thanks
May 21, 2016 at 4:35 pm #195737#3 i have added this code to your theme functions.php but u should have it in achild theme so u dont lose in on theme update.
function gd_convert_my_numbers($html,$arr) { if(isset($arr['value']) && $arr['value']){ $format_val = number_format($arr['value'],0,'.',"'"); $html = str_replace($arr['value'],$format_val,$html); } return $html; } add_filter('geodir_show_geodir_prix_vente', 'gd_convert_my_numbers',10,2);
Thanks,
Stiofan
May 22, 2016 at 8:25 am #195942Hi guys
Thanks for your quick answers.
#1 –> unfortunately nothing has change after applying this code.
#3 –> Thanks it looks perfect.
For #2 i will check your link.
😉
May 22, 2016 at 6:14 pm #196183#2 doesn’t work either
May 23, 2016 at 10:27 am #196413#1 is fixed now, #2 there are no options it needs custome code.
Stiofan
May 23, 2016 at 11:26 am #196427Stiofan…i haven’t seen that i do have a second numeral field that requires the same customization as you did on the “Prix de vente”… this other field is “CA moyen/3 ans (CHF):”
it appears just above the “prix de vente” in the add. (https://pmeavendre.ch/places/suisse/geneve-1/onex/travaux-artisants-construction/entreprise-electricite-a-remettre/)aand for number #2 can you help my with the custom code?
May 23, 2016 at 1:16 pm #196474to add the number formatting to another field you just need the html var prefixed with ‘geodir_’ so in this case just add this one line below the other code.
add_filter('geodir_show_geodir_ca', 'gd_convert_my_numbers',10,2);
for #2 we don’t do customization but if u let me know what you are trying to achieve i can point you in the right direction.
Thanks,
Stiofan
May 23, 2016 at 4:12 pm #196646Thanks now it s perfect.
i haven’t identify clearly the limit of you help (customization)…so sorry if some requests are going too far in the support ability
for #2 i am not at ease. i think that i should insert this code
add_filter(‘geodir_custom_infowindow_html’ , ‘geodir_get_custom_infowindow_html’, 10,3) ;
function geodir_get_custom_infowindow_html($html , $postinfo_obj, $post_preview = ”)
{
return ‘Here u can copy content of geodir_get_infowindow_html function and can make necessary changes in html ‘;
}and replace ‘Here you can copy…. by for exemple ‘geodir_show_geodir_prix_de_vente’ and all of the other HTML information that i want to show….
and put this code in the functions.php of my theme’s folder
i am in the right direction?
May 23, 2016 at 4:16 pm #196649Hi,
you should copy the content of geodir_get_infowindow_html function and can make necessary changes in html.
geodir_show_geodir_prix_de_vente isn’t correct.
To show a custom field you will need to add something like:
global $post; echo $post->geodir_prix_de_vente;
Let us know if this is clearer.
Thanks
May 23, 2016 at 4:26 pm #196651thanks paolo…but it ‘s far too hard for me…i will try to find someone to help me….cause it’s like if you are talking chinese to me with this coding line..hihi
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket