Change Map size in single event view

Home Forums Calendar Products Events Calendar PRO Change Map size in single event view

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #865126
    cesua
    Participant

    Hi,
    Is there a way to change the size of the map in single event view? Right now it’s a vertical rectangle that leaves a lot of empty space towards the bottom for the rest of the section. Thanks.

    #865552
    Brian
    Member

    Hi,

    It is possible to change the map, again same as the additional fields it involves some customization using the Themer’s Guide

    https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/

    \the-events-calendar\views\modules\meta.php

    \the-events-calendar\views\modules\meta\map.php

    If you have any follow up questions please let me know. For the most part customizations are beyond the support we can provide on the forum, but if you get stuck I can try to help out on either customization with the next step, but unable to troubleshoot the entire process.

    Thanks

    #892374
    cesua
    Participant

    Thanks for your response and sorry for the late reply.
    I don’t see size fields in those files to edit. Also, I have the Pro version, not sure if that matters.

    I also found that bu using firebug and minimizing the length of the details field, that the map size would change automatically. Is that something I should change as well?

    Any help would be great. Thanks!

    #892931
    Brian
    Member

    Sure I can help out with some more information. Pro does not change these fields so all good there.

    If you look at this file:

    \the-events-calendar\views\modules\meta\map.php

    Within that template you’ll see the tribe_get_embedded_map() function is used – you can actually specify dimensions by passing additional arguments, something like this: tribe_get_embedded_map( null, 600, 300 ) – which would create a map with a width of 600 pixels and a height of 300 pixels.

    Then you might have to modify the css for this class on that template:

    tribe-events-venue-map

    That should get you close to what you are trying to do.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Change Map size in single event view’ is closed to new replies.