Map Shortcode Display

Home Forums Calendar Products Events Calendar PRO Map Shortcode Display

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1241374
    Somayeh Nikooei
    Participant

    Hi,

    I am having a problem when using the map shortcode. It displays the map of events perfectly however, right below it also lists the events. How can I remove this list and use the shortcode to show the map of events only without the list?

    Thanks!

    #1242435
    Cliff
    Member

    Hi.

    The shortcode’s output comes from render_view() in wp-content/plugins/events-calendar-pro/src/Tribe/Shortcodes/Tribe_Events.php, and its output is filterable via tribe_events_pro_tribe_events_shortcode_output.

    However, an easier solution is just to hide it via CSS, like this:

    #tribe-events.tribe-events-shortcode.view-map {
    display: none;
    }

    This will hide both the Tribe Bar and the Event List below the Map.

    Since we won’t be displaying the Tribe Bar, you might as well not render it at all, like this:

    [tribe_events tribe-bar="false" view="map"]

    Please let me know how this goes for you.

    #1245953
    Somayeh Nikooei
    Participant

    Went very well. Thank you for the easy fix.

    #1246424
    Cliff
    Member

    I’m very glad it worked well for you. Thanks for reporting back.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Map Shortcode Display’ is closed to new replies.