Home › Forums › Calendar Products › Events Calendar PRO › Need venue name in event titles in month view and pop up box
- This topic has 5 replies, 2 voices, and was last updated 10 years, 2 months ago by Barry.
-
AuthorPosts
-
February 28, 2014 at 7:28 am #110798AliciaParticipant
We need to included the venue name in event titles on the monthly grid view and the box that pops up when hovering over an event in the month grid view. I am familiar with how to make changes to php and have gone through the themer’s guide… I just need to know (a) which PAGE to edit and (b) the CODE to add the venue name to these two places and where to add the code in the php file… or elsewhere if needed. Thank you!
February 28, 2014 at 9:10 am #110875BarryMemberHi, great question!
If you look at the month/single-event.php template you will see:
<h3><a href="<?php tribe_event_link( $post ); ?>"><?php the_title() ?></a></h3>
This displays the name of the event. You could modify this to:
<h3><a href="<?php tribe_event_link( $post ); ?>"><?php the_title() ?></a> <?php tribe_get_venue_link() ?></h3>
Similarly within the .tribe-events-tooltip div starting a little below that line of code you could add:
<?php tribe_get_venue_link() ?>
In the appropriate place. Does that help?
February 28, 2014 at 10:58 am #110914AliciaParticipantI added the code <?php tribe_get_venue_link() ?> as you stated but did not get a result. I uploaded the single-event.php file to: mysite.com/wp-content/themes/news-pro/tribe-events. Am I not uploading the file to the correct location?
For css changes (which are showing up fine) I uploaded the ‘override’ file to: mysite.com/wp-content/themes/news-pro/tribe-events/pro/tribe-events-pro.css and that worked wonderfully. It seems like I am not understanding where exactly to upload the edited month/single-event.php file.February 28, 2014 at 11:07 am #110916BarryMemberHi!
So, the path for the single event template in this instance ought to be:
wp-content/themes/news-pro/tribe-events/month/single-event.php
Can you confirm that is what you are using?
February 28, 2014 at 11:22 am #110926AliciaParticipantThat is it! I was not adding “month” to upload path. I added the venue to the titles, which is great, is there a way to remove the link in the venue name though and just make the link run across the entire title. For example, I would like the entire title such as “Shrek the Musical AT Alliance Theatre” to link to the event. Now, the text “Alliance Theatre” links to the Alliance Theatre venue page which is kind of neat but might be confusing to readers if they click on that part of the link and don’t see the actual event.
March 3, 2014 at 1:02 pm #111769BarryMemberSounds like you’re making progress 🙂
You could use the tribe_get_venue() function to just retrieve the venue name (rather than a fully formed link) and/or wrap that within the same link as the event title.
Hope that helps – and I’ll go ahead and close this thread (feel free to open new ones as required for assistance with other issues).
-
AuthorPosts
- The topic ‘Need venue name in event titles in month view and pop up box’ is closed to new replies.