• Resolved thefraj

    (@thefraj)


    Hi all,

    Not sure if this is because (1) this plugin is no longer supported or (2) Google have changed their map, but basically there is no map feature in this plugin.

    Using the short tag brings only a text string which includes busines details, there is no map API, no map includes and no code to initialise it – so I know there is no map feature at all how I’m using it here.

    I’ve dug and dug and according to others, it looks like just putting the address in cases it to add a map – it doesn’t and I’ve not found anywhere in documentation that even suggests how to use this.

    Does anyone know if maps is still supported in this plugin at all? If so, what could we be doing wrong here?

    Many thanks,

    Rog

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter thefraj

    (@thefraj)

    Hi All,

    I think I have a bit more about this: firstly, using the short tag outputs only the markup – not the assets (hence why it doesn’t work for me here), and testing further, I think it’s because we are using entirely custom templates and theme.

    I tried installing a vanilla version of WordPress and used the standard themes that can with it and noticed a series of JS includes and initialisation functions getting injected into the footer.

    Obviously this plugin will not work with custom templates without knowing how to output these assets.

    Does anyone have an ideas how to do this?

    Many thanks,

    Rog

    • This reply was modified 7 years ago by thefraj.
    • This reply was modified 7 years ago by thefraj.
    NateWr

    (@natewr)

    Hi Rog,

    I’m not sure what’s going on with your setup, but if you’re missing the footer PHP tag in your theme, you’re probably not going to get any of the JS assets in the plugin. Every theme should have something like the following just before the closing </body> tag:

    
    <?php wp_footer(); ?>
    

    This is also where WordPress displays the admin bar when you’re logged in, so if you don’t see that it might be a sign that your theme is missing that tag.

    If that’s not the issue, there could be a couple of other things going on. If you share a link to the issue on your site, I’m happy to take a look and see if I can spy anything amiss.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No Google Map’ is closed to new replies.