• Resolved harpo1984

    (@harpo1984)


    Hi Rank Math,

    Currently, the plugin displays a Google Map on the Contact page of the website even though I have not added an API key or Latitude and Longitude settings in your plugin.

    I have to use the following CSS to hide the Google Map generated by the plugin. Here is the code I use:

    /* RANK MATH */
    
    .rank-math-contact-map {
        display: none;
    }

    I have included a link to a screenshot showing a custom map I have embedded and I will discuss below (labelled 1) and the frontend content generated by the local schema settings in your plugin (labelled 2).

    Having the local schema generated is very important but as I need to use another map I don’t want your map to appear and I can’t understand why it appears even with no Google API key or latitude and longitude settings added to your plugin.

    I have to display the Google Map using separate embed code due to the content referrer policy of the website not allowing your iFrame generated by your plugin to load Google Map. Here is the embed code I use to display the map:

    <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d296929.7331632122!2d-6.253777046191908!3d54.44946049932725!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x4860da58d38c5791%3A0x8230cf3ed41bae6f!2sHub%20Packaging%20Limited%20-%20Northern%20Ireland!5e0!3m2!1sen!2suk!4v1622012612410!5m2!1sen!2suk" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy"></iframe>

    Even though I have hidden your Google map with CSS, it is still generating frontend code as can be seen from this screenshot of console errors.

    Kind regards,

    Simon

    • This topic was modified 5 years ago by harpo1984. Reason: emphasis added to clarify issue

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter harpo1984

    (@harpo1984)

    This has now been resolved and was the result of a conflicting plugin that was still active on the website.

    Apologies for any inconvenience.

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @harpo1984

    Glad you got that sorted.

    Please feel free to reach out to us again if you need any other assistance. We are here to help.

    Thank you.

    Thread Starter harpo1984

    (@harpo1984)

    Hi, @rankmath,

    Apparently, this issue is not resolved.

    The Rank Math Google Map loads even with no API Key and Longitude/Latitude added.

    I have just experienced this issue on another site and I must use the following code to hide the map

    .rank-math-contact-map {
      display: none;
    }

    Kind regards,

    Simon

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @harpo1984

    Can you please update to the latest version and see if the issue persists?

    Looking forward to helping you. Thank you.

    Thread Starter harpo1984

    (@harpo1984)

    Hi, @rankmath,

    Yes, thank you, the issue is now resolved in the latest update.

    Kind regards,

    Simon

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @harpo1984

    Glad that helped.

    If it isn’t too much to ask for – would you mind leaving us a review here?
    https://ww.wp.xz.cn/support/plugin/seo-by-rank-math/reviews/#new-post

    It only takes a couple of minutes but helps us tremendously.

    It would mean so much to us and would go a really long way.

    Thank you.​​

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Google Map loads when no data is present’ is closed to new replies.