WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. jammers111
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/basic-google-maps-placemarks/

  2. lynntax_error
    Member
    Posted 9 months 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
    Member
    Posted 9 months 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!

    #bgmp_map-canvas
    
    {
    
    	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
    Member
    Posted 7 months 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
    Member
    Posted 3 months 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