Possible to embed map on home page or other template?

Home Forums Calendar Products Events Calendar PRO Possible to embed map on home page or other template?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #569308
    pwenzel
    Participant

    I would like to include just the map in another template that powers my home page. In my home.php template, I tried using tribe_get_template_part( ‘pro/map/content’ ), but it loads in a big list, rather than the map. Is there a recommended way to render basic Event Calendar parts (such as the map) in other templates?

    #581436
    Barry
    Member

    Hi – great question!

    This is very much custom development territory so unfortunately we can’t go into too much depth on this one – but essentially you would need to ensure that, in addition to including the relevant template, you:

    • Include any JS and CSS assets that the map view depends upon
    • Ensure it is supplied with the data it needs – for example, an array of marker data for each pin that appears on the map

    Some careful study of the existing code would probably fill in some of the blanks.

    You may also be interested in Event Rocket (though do note it isn’t officially supported by Modern Tribe) – it is capable of placing your main events page on the front page of your blog … by combining this – or borrowing the same approach it takes – with map view and possibly a template override or two (if you only want the map and not the list, for instance) you can probably get pretty close to where you need to be 🙂

    I hope that helps!

     

    #878514
    Brook
    Participant

    Since this topic has gone for a spell without an update I am going to archive. If you do still need your issue addresses, please reach out to us with a new topic. Thanks!

    – Brook

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Possible to embed map on home page or other template?’ is closed to new replies.