• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Google Maps refresh problem

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Google Maps refresh problem

This topic is: not resolved

Tagged: google maps

  • This topic has 1 reply, 1 voice, and was last updated 7 years, 9 months ago by ScottsdaleExpert.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • August 30, 2018 at 5:39 pm #222827
    ScottsdaleExpert
    Member

    Google seems to be trying to monetize Maps now and has just forced us to change the code we were using to generate our maps on our website: http://www.troonrealestate.com/

    I don't know if anyone here can help with this but I guess it can't hurt to ask.

    When you go to the home page, the new code loads the map just fine.

    Click on the menu MAP link, http://www.troonrealestate.com/troon-map/, and the page loads with just a blank space where the Google Map is supposed to appear. However, if you refresh the page, the map loads just fine.

    On the Maps page, there is an iframe that calls a html page:
    <iframe width="1100" height="1000" src="https://www.Troonrealestate.com/troon_all.html" frameborder="0" allowfullscreen></iframe>

    This troon_all.html page has a script to load the map in the head section.

    <script async defer
    src="https://maps.googleapis.com/maps/api/js?key=*****************************&callback=initMap">
    </script>

    Obviously our key replaces the stars above.

    The same script above is also included in the Genesis Theme Settings -> header and footer scripts -> header section. I can't get the map to work if it is removed from this header section or if it is removed from the troon_all.html page that is called, so I don't think that is the problem.

    I must be missing something somewhere or doing something wrong, but I can find nobody else with the same problem when I google it.

    Is there a way to force a refresh in the troon_all.html page? Somewhere else?

    Has anyone encountered this sort of problem before and have a solution to it?

    Thanks if you can help.

    http://www.troonrealestate.com/
    August 30, 2018 at 9:08 pm #222835
    ScottsdaleExpert
    Member

    I should add that the iframe code from the Maps page is also used on the home page in the 'Home Top' Custom HTML widget.

    <iframe width="1100" height="1000" src="https://www.Troonrealestate.com/troon_all.html" frameborder="0" allowfullscreen></iframe>

    This makes the same map show up on both pages.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble