A few issues I need to fix
This topic contains 11 replies, has 5 voices, and was last updated by Kiran 5 years ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: default location, openstreetmap, widgets
-
AuthorPosts
-
December 4, 2019 at 5:51 pm #519942
Hi there,
I’m having a few issues, which I’ve been trying to solve looking at the documentation and searching in the support forum, but I couldn’t find a proper solution. I’ve spent too much time already.1- Many widgets are not showing on Details Page Sidebar after adding them. e.g.: Social Media links, Contact Email, Address, Website URL and Ninja Forms button. I have tried every solution on this forum but didn’t work.
2- On the Add Listing Form the fields Region, City and Country are autocompleted with the default location but because this is an international directory I would like to leave them empty. Is there a way to do it?
3- I’m having trouble using OpenStreetMap. If I use the autocomplete feature on the address field, it would suggest incorrect places. If I choose one of the suggested streets, it would delete the street number. However, disabling the autocomplete feature, it shows a message saying that’s not possible to find this location despite the address is correct. Any solution?
Thanks a lot!
Tomas
December 5, 2019 at 6:45 am #520023Hi Tomas Canale,
Thanks for your post. Please allow me to answer your questions accordingly.
1. We would need WP admin access to check this out. Could you provide it in a private reply?
2. You can “Disable address autocomplete” using the option here https://wpgeodirectory.com/docs-v2/addons/location-manager/#settings .
3. In some specific cases, the map API may give what you know to be incorrect information. There is bad data out there. In the case of a single address, there may not be much we can do about it. See this FAQ for more information: https://wpgeodirectory.com/docs-v2/integrations/google/#osm
December 5, 2019 at 4:13 pm #520109This reply has been marked as private.December 5, 2019 at 4:22 pm #520115Hi Kor, thanks for your quick response.
2- I already disabled the Address Autocomplete, but it still autocompletes the country, region and city fields with the default location details (see the screenshot below). Is there any way to leave them empty?
3- I saw in another thread that is possible to use Google Maps API only on the add listing pages. How can I do that?
Cheers,
Tomas
December 5, 2019 at 8:57 pm #5201621. The developers will take a look.
2. You can set your Maps API to OSM, and then force the add listing page to use Google.
First set your Maps API to Google.
Get both keys setup, one for Maps and one for GeoCoding. Place them in GD – Settings – General Maps Settings
Add this snippet (More about adding snippets)/** * Load Google map on admin backend add or edit listing page. */ function gd_snippet_admin_add_listing_map_name( $map ) { global $post, $pagenow; if( ( 'edit.php' === $pagenow || 'post.php' === $pagenow || 'post-new.php' == $pagenow ) && ! empty( $post->post_type ) && geodir_is_gd_post_type( $post->post_type ) ) { $map = 'google'; // google or osm } return $map; } add_filter( 'geodir_map_name', 'gd_snippet_admin_add_listing_map_name', 20, 1 ); /** * Load Google map on frontend add or edit listing page. */ function gd_snippet_map_name( $map ) { if ( geodir_is_page( 'add-listing' ) ) { $map = 'google'; // google or osm } return $map; } add_filter( 'geodir_map_name', 'gd_snippet_map_name', 20, 1 );
December 9, 2019 at 2:34 pm #520624Hi Tomas,
for #1 I will need FTP access. could you please send it in private reply.
Thanks
December 9, 2019 at 11:37 pm #520731This reply has been marked as private.December 9, 2019 at 11:38 pm #520732Thanks Alex!
I’ll give a try.
Have a nice day!
December 10, 2019 at 12:11 pm #520784Hi Thomas,
I have selected “Auto” template from GeoDirectory > Settings > Design > Details > Page template file override.
You can set widgets now under GD Sidebar to show on detail page
Kiran
December 10, 2019 at 6:46 pm #520833Hi Kiran! Thanks a lot for fixing it!
Just a quick one: how can I get WordPress back to Spanish? Despite I change WordPress Language, it stays in English and it’s also affecting the front-end translation.
December 11, 2019 at 2:04 am #520895Maybe Google is translating it? The WP setting should do it. Also try clearing your cache.
December 11, 2019 at 5:45 am #520910Hi Tomas,
Done!.
Sorry i have changed admin user language to English to check issue. I have changed a language back to site default from WordPress Admin > Edit My Profile(from admin bar right corner) > Language > Site Default.
Thanks,
Kiran -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket