Support » Plugin: WP Go Maps (formerly WP Google Maps) » How to add padding to the maps?

Viewing 1 replies (of 1 total)
  • Plugin Author DylanAuty

    (@dylanauty)

    Hi @hansprive,

    Thank you for getting in touch, we do appreciate your time.

    Unfortunately, we don’t currently have a setting that controls the amount of space around a map (padding), but this can be achieved using our custom CSS block under Maps > Settings > Custom Scripts > Custom CSS.

    More specifically, I assume you would like to add white space around the map, in this case, you would likely want to add a margin value around the map:

    .wpgmza_map {
        margin: 15px !important;
    }

    You can adjust the 15px value as preferred. You do need to include the !important rule to override the defaults applied by most themes to all containers on a site, however, this could be omitted in some cases.

    The alternative is to add a padding value instead, but you will likely find this does not adjust the space around the map and instead simply adds more space to the inside of the map, which is likely not the desired result.

    I hope this helps?

Viewing 1 replies (of 1 total)
  • The topic ‘How to add padding to the maps?’ is closed to new replies.