WordPress.org

Support

Support » Plugins and Hacks » How to make the map responsive

How to make the map responsive

Viewing 4 replies - 1 through 4 (of 4 total)
  • lynntax_error
    Member

    @lynntax_error

    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?

    lynntax_error
    Member

    @lynntax_error

    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;
    
    }
    DigitalEssence
    Participant

    @digitalessence

    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.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to make the map responsive’ is closed to new replies.