Home › Forums › Calendar Products › Events Calendar PRO › I would like to add Time and Venue to Event Title in Calendar View
- This topic has 38 replies, 3 voices, and was last updated 5 years, 5 months ago by Cliff.
-
AuthorPosts
-
September 3, 2018 at 2:39 pm #1612525ncbaroqueorchestraParticipant
I have already set up a staging site, and copied Map View file to:
wp-content/themes/my-child-theme/tribe-events/pro [as outlined in your Themer’s Guide]
I would now like to add the event time and venue to the Map View., instead of the address. How do I do that?September 5, 2018 at 10:21 am #1614375CliffMemberHi. Are you wanting to customize the map’s pin/tooltip content or the list of events below it?
If the former, you might take a look at the source code of this extension:
- https://theeventscalendar.com/extensions/google-maps-multiple-events-same-venue/
- https://github.com/mt-support/tribe-ext-map-show-all-events-with-same-venue/blob/master/src/tribe-events-ajax-maps.js
Hope that helps point you in the right direction. Please let me know how this goes for you.
September 6, 2018 at 12:05 pm #1615537ncbaroqueorchestraParticipantI installed the extension you mention above. Now, when I click on the pin for Raleigh, NC, I get the following:
Music of Palestrina, Monteverdi – Raleigh [Event Title]
Bach’s Coffee Cantata – Raleigh [Event Title]
Address: 120 E. Edenton Street [Event Address]What I would like to see is:
Music of Palestrina, Monteverdi – Raleigh, [Event Title] 10/12/18 [Event Date]
Bach’s Coffee Cantata – Raleigh, [Event Title] 2/23/19 [Event Date]
Christ Church Episcopal Church, Raleigh, NC [Venue Name, City, State]I would then be able to remove the city from the event title, which was a clumsy workaround!
I think this is the part that needs to be edited:
TribeEventsPro = {“geocenter”:{“max_lat”:36.09940000000000281943357549607753753662109375,”max_lng”:-76.826099999999996725819073617458343505859375,”min_lat”:32.78221099999999665897121303714811801910400390625,”min_lng”:-82.6451789999999988367562764324247837066650390625},”map_tooltip_event”:”Event: “,”map_tooltip_address”:”Address: “};
var TribeEventsPro = {“geocenter”:{“max_lat”:36.09940000000000281943357549607753753662109375,”max_lng”:-76.826099999999996725819073617458343505859375,”min_lat”:32.78221099999999665897121303714811801910400390625,”min_lng”:-82.6451789999999988367562764324247837066650390625},”map_tooltip_event”:”Event: “,”map_tooltip_address”:”Address: “};</script> <script type=’text/javascript’ src=’https://www.ncbaroqueorchestra.org/wp-content/plugins/events-calendar-pro/src/resources/js/tribe-events-pro.min.js?ver=4.4.31′>September 6, 2018 at 12:05 pm #1615538ncbaroqueorchestraParticipantI installed the extension you mention above. Now, when I click on the pin for Raleigh, NC, I get the following:
Music of Palestrina, Monteverdi – Raleigh [Event Title]
Bach’s Coffee Cantata – Raleigh [Event Title]
Address: 120 E. Edenton Street [Event Address]What I would like to see is:
Music of Palestrina, Monteverdi – Raleigh, [Event Title] 10/12/18 [Event Date]
Bach’s Coffee Cantata – Raleigh, [Event Title] 2/23/19 [Event Date]
Christ Church Episcopal Church, Raleigh, NC [Venue Name, City, State]I would then be able to remove the city from the event title, which was a clumsy workaround!
I think this is the part that needs to be edited:
TribeEventsPro = {“geocenter”:{“max_lat”:36.09940000000000281943357549607753753662109375,”max_lng”:-76.826099999999996725819073617458343505859375,”min_lat”:32.78221099999999665897121303714811801910400390625,”min_lng”:-82.6451789999999988367562764324247837066650390625},”map_tooltip_event”:”Event: “,”map_tooltip_address”:”Address: “};
var TribeEventsPro = {“geocenter”:{“max_lat”:36.09940000000000281943357549607753753662109375,”max_lng”:-76.826099999999996725819073617458343505859375,”min_lat”:32.78221099999999665897121303714811801910400390625,”min_lng”:-82.6451789999999988367562764324247837066650390625},”map_tooltip_event”:”Event: “,”map_tooltip_address”:”Address: “};</script> <script type=’text/javascript’ src=’https://www.ncbaroqueorchestra.org/wp-content/plugins/events-calendar-pro/src/resources/js/tribe-events-pro.min.js?ver=4.4.31′>September 6, 2018 at 2:44 pm #1615746CliffMemberThe extension is designed to display all events at a single venue. It accomplishes this by customizing the pin’s text. You can reference its codebase as a starting point, but I cannot assist you further toward your desired customizations.
If you need some coding help, you may want to ask your own developer or reference our Customizations Documentation, which includes a link to Hire A Freelancer.
September 6, 2018 at 3:47 pm #1615785ncbaroqueorchestraParticipantThis reply is private.
September 12, 2018 at 4:46 pm #1620261PatriciaMemberHi there!
We tweaked the tribe-events-ajax-maps.js file to help you and other customers who might want to customize the map tooltip in the future.
These are the lines that we modified/updated (L56 to L80):
Here’s the new extension file.
Please note that for now, this is an unofficial extension. The code here was modified based on existing .js file in the “Display all events with the same venue in the map tooltip” extension and is keeping this functionality as well.
I hope this helps!
Regards,
Patricia
September 13, 2018 at 10:27 am #1621060ncbaroqueorchestraParticipantHi, Patricia! I was so excited to receive your response and tried to install the new extension file, using the plugin installer. However, I got the following message:
“The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature” What went wrong?September 13, 2018 at 10:08 pm #1621650CliffMemberHi. Patricia’s .zip file worked just fine for me.
Please try again. If it doesn’t work, you might want to unzip it and upload it manually via FTP (https://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation)
Please let me know how this goes for you.
September 14, 2018 at 9:16 am #1621983ncbaroqueorchestraParticipantI can’t unzip it! See screenshot of results from Win-Zip. Is there a better program I could use for un-zipping?
I read through your article on Manual Plugin Installation, and have a question: where to find my FTP program?
September 14, 2018 at 12:30 pm #1622308ncbaroqueorchestraParticipantI unzipped it…using 3rd program! Have read all articles on FTP uploads…but that will have to wait until after Florence. Expecting high winds soon. So, if you don’t hear from me, it’s not because I’ve lost interest…just lost power or Internet access…lol!
September 14, 2018 at 12:30 pm #1622309ncbaroqueorchestraParticipantI unzipped it…using 3rd program! Have read all articles on FTP uploads…but that will have to wait until after Florence. Expecting high winds soon. So, if you don’t hear from me, it’s not because I’ve lost interest…just lost power or Internet access…lol!
September 14, 2018 at 5:33 pm #1622457ncbaroqueorchestraParticipantPatricia’s extension has been installed and activated on the staging site. I tried it, but nothing has changed. Does it have to be configured? If so, where?
September 14, 2018 at 7:00 pm #1622483ncbaroqueorchestraParticipantThis reply is private.
September 14, 2018 at 8:42 pm #1622524ncbaroqueorchestraParticipantThis reply is private.
-
AuthorPosts
- The topic ‘I would like to add Time and Venue to Event Title in Calendar View’ is closed to new replies.