Basic Google Maps Placemarks
How to make the map responsive (5 posts)

  1. jammers111
    Posted 3 years ago #

    Hello there

    This plugin is brilliant but after searching around, I am unable to make it responsive. I tried changing the width to 100% but it does not work for me. Any help will be much appreciated.


  2. lynntax_error
    Posted 2 years ago #

    Oh I wish there was an answer here too! It is a fantastic plugin and that's the only thing I need it to do that it doesn't. I'm spending too much time searching through the code trying to find where the units of the width are defined as pixels so I can try changing it to percent. 100% width would fix it, but where oh where to change it?

  3. lynntax_error
    Posted 2 years ago #

    And I was making it way more difficult than it needed to be. Use an FTP program to access the style.css file and simply add the !important rule. VoilĂ , it works!

    	width: 100% !important;	/* The width and height here are just defaults in case the JavaScript can't load. They're overridden with the ones on the Settings page when the map is created. (Good ole !important saves the day again.) */
    	height: 400px;
  4. DigitalEssence
    Posted 2 years ago #

    Thanks for that. All I needed was the map to be responsive and a quick look at the forum and I find your post with example code.

  5. alexgr
    Posted 2 years ago #

    lynntax_error, thank you for addressing this issue. Very strange that the original plugin is not registered this option.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic