• Resolved 8vodesigns

    (@8vodesigns)


    I cannot see the map in the listing page. I have put in my Google Maps API and I can see it in the back-end listing. Although in the back-end, the marker does not move to the address I inserted. I am using the latest version of the plugin.

    This is the code that was in the single.php. Do I need something else in there?

    <?php if ( ldl_use_google_maps() ): ?>

    <div id=”map_wrapper”>
    <div id=”map_canvas”></div>
    </div>
    <?php endif; ?>

    • This topic was modified 6 years, 2 months ago by 8vodesigns.

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Could you please check if you are overriding Ldd directory template in your theme? there are additional comments in page source which is not in the latest version.

    Thread Starter 8vodesigns

    (@8vodesigns)

    I got the maps to kinda work. Now the maps have a vertical grey bars. I checked the error logs and it says I have the Google Maps API multiple times on the page. I checked the template and it is only on the page once.

    I did play with the template file so that it would display the way I would like. I did check it out with the original template page and the same thing happened. My current setting for the template overriding was Plugin Default.

    Thread Starter 8vodesigns

    (@8vodesigns)

    I just tried using the Theme Default and it crashed the site.

    if you are overriding template files in the theme then you should copy the files from plugin templates, because we have made lot of changes, i am checking the issue on my end.

    • This reply was modified 6 years, 2 months ago by LDDConsulting.
    Thread Starter 8vodesigns

    (@8vodesigns)

    could you replace if ( ldl_use_google_maps() ) with if ( ldl_use_google_maps() == true) on both places of the single template, there should be two files available for single template. though the current check should work in most cases.

    Thread Starter 8vodesigns

    (@8vodesigns)

    I replaced the code, but it hasn’t changed anything in the map.

    I did notice some code at the top of the page that says:

    // ldl_use_google_maps() will always return false if this isn’t an array containing our lat and lng

    Do I need to add something in here?

    Plugin Author LDD Web Design

    (@lddwebdesign)

    It actually looks like there may be something in your themes css causing this issue. When we disable main.css the issue does not appear:

    https://www.awesomescreenshot.com/image/3623844/7f1f2a960df9c0082284c4eeb2a567bf

    Thread Starter 8vodesigns

    (@8vodesigns)

    Did you turn it off in the Directory plugin?

    Plugin Author LDD Web Design

    (@lddwebdesign)

    We disabled the css in the browser. We did not locate the exact css rule(s) that might be causing the issue, however it is definitely in your theme’s main.css file.

    Thread Starter 8vodesigns

    (@8vodesigns)

    Thank you for looking into this. I did do a test to take it out and it did work. Thanks for looking into this.

    Plugin Author LDD Web Design

    (@lddwebdesign)

    You are very welcome. We’re glad to finally get this issue resolved for you.

    Thread Starter 8vodesigns

    (@8vodesigns)

    Update – I found the offending line of code. I was overriding the #map_wrapper img. Once I took that out it works great.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Google Maps not working’ is closed to new replies.