• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

how to change width google maps

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › how to change width google maps

This topic is: resolved
  • This topic has 7 replies, 3 voices, and was last updated 9 years, 4 months ago by carasmo.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • October 19, 2016 at 7:16 am #195019
    Simo
    Member

    Hi,
    I've created a google maps link inserting this html code into a page :

    <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2796.4628770728004!2d8.96844131577428!3d45.50075997910145!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x4786ec4ea4f2d2cf%3A0x7a027c55bd4fc64c!2sAutoassistenza+Cicero+Di+Cicero+Benito!5e0!3m2!1sit!2sit!4v1476882184846" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>

    I would to extend my maps until the end of the page border, leaving no white border.
    How is possible?
    Thanks for support.

    http://officinacicero.com
    October 19, 2016 at 7:38 am #195020
    malycom
    Member

    Try changing width to 100% instead og 600 so it would look something like width="100%" height="450" - Change height to wahtever.

    October 19, 2016 at 7:57 am #195023
    Simo
    Member

    HI malycom,
    thanks for your reply!

    I tried to change width into 100% but there are always a small part of border..
    this is the code:

    <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2796.4628770728!2d8.968441315774268!3d45.50075997910146!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x4786ec4ea4f2d2cf%3A0x7a027c55bd4fc64c!2sAutoassistenza+Cicero+Di+Cicero+Benito!5e0!3m2!1sit!2sit!4v1475762975532" width="100%" height="450" frameborder="0" style="border:0" allowfullscreen ></iframe>

    October 19, 2016 at 2:21 pm #195060
    carasmo
    Participant

    http://embedresponsively.com/


    Genesis Theme Customization and Help

    October 20, 2016 at 5:27 am #195093
    Simo
    Member

    Thanks Carasmo,
    It does not work, it is always a space between the edge of the page and the end of the map.
    I want an effect like the map at the end of the site in the following link..http: //corsa.us-themes.com/#home

    October 20, 2016 at 3:34 pm #195129
    carasmo
    Participant

    Then you locate what is keeping the width constrained (.wrap) and use CSS to specify new widths and display values AND you use the responsive embed code.

    This CSS goes at the very bottom of your child theme stye.css file out side of other declaration blocks. Use FTP and a code editor.

    .front-page-7 .flexible-widgets {
        display: block;
    }
    
    .front-page-7 .wrap {
        max-width: none;
    }
    
    .front-page-7 .image-section .widget-area {
        display: block;
    }
    
    .front-page-7 .flexible-widgets {
        padding-bottom: 0;
        padding-top: 0;
    }

    Genesis Theme Customization and Help

    October 21, 2016 at 3:30 am #195142
    Simo
    Member

    Dear Carasmo,
    Now everything is working properly, thanks!
    Can I ask why you suggest I use the responsive embed code and not the standard code of google maps and then edit the parameters of the width?
    I tried with both the codes and now, after entering the code inside the style.css file, both works.

    Thanks for your help

    October 21, 2016 at 6:35 am #195148
    carasmo
    Participant

    Both works, but one is fluid / responsive the other is just the width.


    Genesis Theme Customization and Help

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble