How to add a widget about the person's location viewing my blog ?

  • Unknown's avatar

    Hello,guys

    I wanna add a widget of the person’s location viewing my blog and how to do it for me ?

    Thanks!

    Best Regards
    Quanwen Zhao

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi,

    Give the steps listed below a try. Go to
    http://clustrmaps.com/ -> Select Create New Widget on top menu.
    Enter ur site link quanwenzhao.wordpress.com
    Sign up and select free plan
    Select Map widget and copy the HTML code given

    Go to My Site(s) →Dashboard -> Appearance->Widgets->Add a Custom HTML Widget to your Sidebar and paste the code
    Click Saved and Done.

    Now you must be able to view the changes in your blog.

    Hope that helps. Let me know if you face any issues.

    Thank you.

  • Unknown's avatar

    Hello,iamrishaan!

    According to your steps,I have added a Widget of “Custom HTML”,and title is “Your Locations:”,content is “<script type=”text/javascript” id=”clustrmaps” src=”//cdn.clustrmaps.com/map_v2.js?d=6dtpZg_P9tSRxpKMGxS9M2YE6YtaxFsKXwoIjK3sLls&cl=ffffff&w=a”></script>” – generating ClustrMaps’ code.

    But when I saved and it shows these message – “There is 1 error which must be fixed before you can save.”

    Please Note.

    Best Regards
    Quanwen Zhao

  • Unknown's avatar

    Hi,

    If you had selected Globe Widget in Clustr Maps, it requires scripts and WordPress.com doesn’t support scripts.

    You need to select Map Widget and copy the given HTML code and paste it in Custom HTML widget.

    This is just a work around. Hope that helps.

    Thank you.

  • Unknown's avatar

    Hi,iamrishaan!

    My error is due to selecting a Map Widget and I never used Globe Widget.

    Where do I attach an image?

    Best Regards
    Quanwen Zhao

  • Unknown's avatar

    Hi quanwenzhao,

    When you had selected Map Widget it would have given you two options

    1. The first method is based on javascript which is the code you have pasted above.

    2. The second option is plain image embed code, which is the one you need to paste in the Custom HTML widget.

    Go back to http://clustrmaps.com/ -> Select My Websites on top menu.
    Click on the Code link under Widget column.
    Select Map Widget
    Copy the code under the text “Unfortunately some blogging platforms don’t support javascript (Livejournal, Google Sites). In this case the only available option is plain image embed code:” and paste it in Custom HTML widget in WordPress.com Dashboard.

    Thank you.

  • Unknown's avatar

    If you still face an issue. You can upload a screenshot in Cloudup or Snaggy and share the link here.

    Thank you.

  • Unknown's avatar

    Hello,iamrishaan

    Thanks for your help sincerely.

    Now,I attach my snapshots in Snaggy and its web address is as follows,

    https://snag.gy/7zhYua.jpg
    https://snag.gy/WnM87I.jpg
    https://snag.gy/R4bor5.jpg
    https://snag.gy/vXArKF.jpg
    https://snag.gy/zFBUfC.jpg

    But,it’s Okay using the second option you menioned and I also didn’t know what’s wrong with it yesterday.

    Best Regards
    Quanwen Zhao

  • Unknown's avatar

    Hi,

    The code in the above screenshot link is what you need to use. It says an alt attribute must be specified inside image tag. The alt attribute just provides an “alternative description” for the image.

    You need to put alt=”Visitor Location” inside the img tag. In between quotes specified below you need to put the code in the screenshot.
    <img src=” ” alt=”Visitor Location”>

    If you are still not able to accomplish the same then i would suggest using geolocation plugins which requires a Business plan upgrade.

    Thank you.

  • Unknown's avatar

    Thank you very much,iamrishaan!

    Very nice.

    According to your guiding,it’s Okay this time!

    Best Regards
    Quanwen Zhao

  • Unknown's avatar

    You are most welcome quanwenzhao :) Cheers!

  • The topic ‘How to add a widget about the person's location viewing my blog ?’ is closed to new replies.