Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1299586

    isdg01
    Participant

    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!
    Dawn

    #1299588

    isdg01
    Participant
    This reply has been marked as private.
    #1299596

    isdg01
    Participant

    PS… I need the map to be 1980 x 500 px to match the rest of my header images.
    Thanks!

    #1299698

    Nabeel A
    Moderator

    Hi 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!

    #1299763

    isdg01
    Participant

    Thanks. This piece of code made it full width, but now it’s way too tall. How can I restrict the height to 500px?

    #1299790

    Joao
    Moderator

    Hi There,

    Please add to the Style Box of your google maps element:

    max-height: 500px;

    Hope that helps

    Joao

    #1299862

    isdg01
    Participant

    That 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,
    Dawn

    #1300189

    Christopher
    Moderator

    Hi there,

    To adjust the height, please use google map element. See the attachment.

    Thanks.

    #1300763

    isdg01
    Participant

    That 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!
    Dawn

    #1300772

    isdg01
    Participant

    Unfortunately, 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?
    Dawn

    #1300912

    Nabeel A
    Moderator

    Hi 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!