Can't get Google maps to show with the Site Publisher

WebHostPro

Well-Known Member
PartnerNOC
Jul 28, 2002
1,725
28
328
LA, Costa RIca
cPanel Access Level
Root Administrator
Twitter
I just built a demo site for the Site Publisher ecommerce-web-hosting.com

But when I add the Google url it will not show the map:

google.com/maps/place/WebHost.Pro/@34.0483757,-118.2570781,17z/data=!3m1!4b1!4m5!3m4!1s0x80c2c7b4ed60c7f7:0x2332514680b9f2f5!8m2!3d34.0483757!4d-118.2548894

Any idea what I am missing?

Also is there a way to add a link in the about section?

Thanks!
Charley
 
Last edited by a moderator:

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
And my god, just try to be human.
Ouch.

The link was meant to be helpful to give you some ideas for making your own template style. Whatever the available forms are for that default template is all you can do with it. Output is sanitized when you save the form I believe and is probably why your map link won't work. If you want more, you'll need to make one with more options, like the one I linked you to for example.

At the bottom of that blog post is a link to the full docs with more information, meant to be helpful too.

My apologies that I don't have a single command to give you that adds some lines of code that makes your map work the way you want.

This Feature is new and coming along really well. Feature Requests to make it better are always accepted.

Have a nice weekend!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463

WebHostPro

Well-Known Member
PartnerNOC
Jul 28, 2002
1,725
28
328
LA, Costa RIca
cPanel Access Level
Root Administrator
Twitter
O.K great, I was able to hack it from that. If you use the ebed code you need to remove these parts:

Code:
<iframe src="https://www.google.com/maps/embed?pb=!1m13!1m8!1m3!1d13307.123310091689!2d-111.93436355!3d33.507079!3m2!1i1024!2i768!4f13.1!3m2!1m1!2sWebHost.Pro!5e0!3m2!1sen!2sus!4v1478637795021" width="800" height="600" frameborder="0" style="border:0" allowfullscreen></iframe>
Remove this: <iframe src="
And this: " width="800" height="600" frameborder="0" style="border:0" allowfullscreen></iframe>

So choose embed but remove the tags:

Code:
https://www.google.com/maps/embed?pb=!1m13!1m8!1m3!1d13307.123310091689!2d-111.93436355!3d33.507079!3m2!1i1024!2i768!4f13.1!3m2!1m1!2sWebHost.Pro!5e0!3m2!1sen!2sus!4v1478637795021
That did it, thanks!
 
Last edited by a moderator:
  • Like
Reactions: cPanelMichael