Support

Home Forums Event Espresso Premium Map width in % ?

Map width in % ?

Posted: April 23, 2015 at 9:12 am


Elnino

April 23, 2015 at 9:12 am

Hi there,

My question is simple, I’ve read in the doc that the Google Maps width should be entered in px. So what’s my option if I want it to be responsive?

I’d like my map to be 100% wide, is it something achievable?

Thanks.


Lorenzo Orlando Caum

  • Support Staff

April 23, 2015 at 2:51 pm

Hi, the map width in percentage is not currently supported at this time as as a setting in the WP dashboard.

Try adding this CSS to your child theme’s stylesheet or a plugin like My Custom CSS:

.espresso_venues .ee-gmap, .espresso_events .ee-gmap {
	width:100% !important;
	max-width: 100% !important;
}

Let us know if that works.


Lorenzo


Elnino

April 23, 2015 at 2:57 pm

Thanks. Meanwhile what I’ve done is that I’ve set up the width to 1200 and it actually works perfectly fine on a responsive version. My map is centered even for low-width resolution so there’s even no need for the CSS tweak.

The support post ‘Map width in % ?’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso