Home › Forums › Calendar Products › Events Calendar PRO › Edit Map View that is added via shortcode
- This topic has 4 replies, 2 voices, and was last updated 8 years, 1 month ago by
Josh.
-
AuthorPosts
-
March 2, 2018 at 8:44 am #1468362
Josh
ParticipantWe are currently adding the map view to a page via shortcode. Find a Camp I need to edit the template and make it a two column layout. I’ve edited the map.php view and that works on the /events page but not on the page that has the view added via shortcode. Do you know which file I would override to accomplish this?
March 7, 2018 at 11:52 am #1472553Jennifer
KeymasterHi Josh,
Thanks for reaching out!
The templates for map view (both on the main events page and from the shortcode) can be found at wp-content/plugins/events-calendar-pro/src/views/pro – the same templates are used for both views.
We are a bit limited in the amount of support that we can provide for customizations, but I will be happy to point you in the right direction! I would recommend first clearing out any caching that you’re doing on your site (such as on your server or via a plugin) to make sure that you’re seeing the most recent version of the page with the shortcode.
If that doesn’t make a difference, can you please send me a copy of the page the code you’re using via a gist so that I can test it out on my end?
Thanks,
Jennifer
March 9, 2018 at 12:45 pm #1475088Josh
ParticipantThanks for the reply.
Here is a gist of my customization of wp-content/plugins/events-calendar-pro/src/views/pro/map.php
https://gist.github.com/anonymous/65afaf9beb74c60dc487ddcdf21e34d2
That file is placed in [theme]/tribe-events/pro/ as instructed in the original file.I’m using [tribe_events] in the content block of the page to add the calendar.
What I’ve found is that when you add events calendar via shortcode it doesn’t use this file to render the view. I’ve tested that by removing all of my overridden files and searching for “class=”tribe-clear”” (found at the bottom of map.php) in the rendered source of that page.
I understand that support is limited for customizations, so I appreciate any help you can provide on which file to edit.
-
This reply was modified 8 years, 2 months ago by
Josh.
March 31, 2018 at 9:35 am #1493608Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
This reply was modified 8 years, 2 months ago by
-
AuthorPosts
- The topic ‘Edit Map View that is added via shortcode’ is closed to new replies.
