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 Ticket
  • Author
    Posts
  • #519942

    Tomas Canale
    Expired Member
    Post count: 9

    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

    #520023

    Kor
    Moderator
    Post count: 16516

    Hi 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

    #520109

    Tomas Canale
    Expired Member
    Post count: 9
    This reply has been marked as private.
    #520115

    Tomas Canale
    Expired Member
    Post count: 9

    Hi 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

    #520162

    Alex Rollin
    Moderator
    Post count: 27815

    1. 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 );
    
    #520624

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Tomas,

    for #1 I will need FTP access. could you please send it in private reply.

    Thanks

    #520731

    Tomas Canale
    Expired Member
    Post count: 9
    This reply has been marked as private.
    #520732

    Tomas Canale
    Expired Member
    Post count: 9

    Thanks Alex!

    I’ll give a try.

    Have a nice day!

    #520784

    Kiran
    Moderator
    Post count: 7069

    Hi 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

    #520833

    Tomas Canale
    Expired Member
    Post count: 9

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

    #520895

    Alex Rollin
    Moderator
    Post count: 27815

    Maybe Google is translating it? The WP setting should do it. Also try clearing your cache.

    #520910

    Kiran
    Moderator
    Post count: 7069

    Hi 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

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount