Home › Forums › Ticket Products › Event Tickets Plus › map width curtained when no organiser specified
- This topic has 5 replies, 2 voices, and was last updated 10 years, 9 months ago by
George.
-
AuthorPosts
-
July 12, 2015 at 1:31 pm #985727
Alan
ParticipantHi
When viewing a single event, if I include an organiser then in venue details below the embedded map fills out the browser page width.
http://spruceweb.co.uk/paultest/course/quantum-touch-level-1-august-2015/
…however I don’t want to display an organiser, but when I do this the embedded map in the venue details uses less than half the available width. How do I correct this?
http://spruceweb.co.uk/paultest/course/357/
Thanks
Alan
July 13, 2015 at 8:20 am #985880George
ParticipantHey Alan,
Sorry you’ve run into these issues here – not sure exactly why it’s happening. As a fix in the meantime, hopefully, I’d recommend trying to add the following CSS to the bottom of your theme’s style.css file:
.tribe-events-event-meta.primary .tribe-events-meta-group.tribe-events-meta-group-gmap {
width: 66% !important;
}
You can play around with the exact width number there, of course, but hopefully this helps here.
Let us know if it does!
Thanks,
GeorgeJuly 13, 2015 at 12:20 pm #986003Alan
ParticipantHi George
If I specify an organiser then this CSS has no effect.
http://spruceweb.co.uk/paultest/course/quantum-touch-level-1-august-2015/
However when no organiser is specified then it solves the problem in desktop view. However the problem now appears on mobile devices where the map is positioned under the venue details and should therefore be set to 100% width.
http://spruceweb.co.uk/paultest/course/357
Is there CSS for specifying the map width on mobile devices?
Alternatively CSS to hide the organiser details might work?
Thanks
July 14, 2015 at 7:39 pm #986485George
ParticipantHey Alan,
Yes, you can get quite granular with browser-size-specific CSS rules here using Media Queries. Definitely check those out online if you’re not familiar with them. An example of using these to improve the appearance of maps on your site is to replace the original code I recommended with this:
.tribe-events-event-meta.primary .tribe-events-meta-group.tribe-events-meta-group-gmap {
width: 100%;
}@media ( max-width:768px ) {
.tribe-events-event-meta.primary .tribe-events-meta-group.tribe-events-meta-group-gmap {
width: 100%;
}
}
Play around with stuff like this and explore media queries online, this article is a great resource for example → https://css-tricks.com/css-media-queries/
Cheers!
July 20, 2015 at 1:27 am #987734Alan
ParticipantThanks George, that’s perfect now.
Alan
July 20, 2015 at 12:53 pm #988070George
ParticipantGreat! Best of luck with your site, cheers 🙂
— George
-
AuthorPosts
- The topic ‘map width curtained when no organiser specified’ is closed to new replies.
