Tagged: cornerstone
-
AuthorPosts
-
December 20, 2016 at 11:49 am #1299586
Hi,
I have added a Google Map to my Contact page. I would like it to be full width but so far have not been able to adjust the width.
Please help!
DawnDecember 20, 2016 at 11:51 am #1299588This reply has been marked as private.December 20, 2016 at 11:55 am #1299596PS… I need the map to be 1980 x 500 px to match the rest of my header images.
Thanks!December 20, 2016 at 1:57 pm #1299698Hi there,
Thanks for writing in! Please add the following code in your Customizer via Appearance > Customize > Custom > Edit Global CSS:
.page-id-26 #x-section-1 .x-container.max { max-width: 1980px !important; } .page-id-26 #x-section-1 .x-container.width { width: 100% !important; }
Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!
December 20, 2016 at 3:07 pm #1299763Thanks. This piece of code made it full width, but now it’s way too tall. How can I restrict the height to 500px?
December 20, 2016 at 3:37 pm #1299790Hi There,
Please add to the Style Box of your google maps element:
max-height: 500px;
Hope that helps
Joao
December 20, 2016 at 5:00 pm #1299862That did not work at all. Map is now on top of my headers, copy and a portion of my contact form… Please feel free to take a peek at the site and let me know what I have done wrong.
Thanks,
DawnDecember 21, 2016 at 1:12 am #1300189Hi there,
To adjust the height, please use google map element. See the attachment.
Thanks.
December 21, 2016 at 11:35 am #1300763That did the trick! Did not realize there were two separate Google Maps choices in Cornerstone… similar but different.
Thanks for the help and Happy Holidays!
DawnDecember 21, 2016 at 11:41 am #1300772Unfortunately, I spoke too soon… everything looks correct while I am in Cornerstone. As soon as I save and exit to view the page, I get an error where the map should be that says “Oops! Something went wrong.
This page didn’t load Google Maps correctly. See the JavaScript console for technical details.”I am not even going to claim to know how to fix anything with JavaScript! Where did I go wrong on this one?
DawnDecember 21, 2016 at 2:57 pm #1300912Hi again,
The current URL loading the Google Maps JavaScript API has not been added to the list of allowed referrers. Please check the referrer settings of your API key on the Google API Console.
See API keys in the Google API Console. For more information/ Also refer to this link as well http://stackoverflow.com/questions/35288250/google-maps-javascript-api-referernotallowedmaperror
Hope this helps!
-
AuthorPosts