Home › Forums › Calendar Products › Events Calendar PRO › Hyperlink the title of the tool tip
- This topic has 4 replies, 3 voices, and was last updated 9 years, 8 months ago by
Amal.
-
AuthorPosts
-
August 3, 2016 at 4:28 pm #1147397
Amal
ParticipantHi,
I have searched the forums but cannot find an answer to the question I have.I would like to hyperlink the title and image in the tooltip of an event, to the event.
IE: https://www.dropbox.com/s/e845m2khto0f5yi/Screenshot%202016-08-03%2016.25.02.png?dl=0
The image of the chairs and the text “Pierre Paulin, 1927-2009 EN” would link to the event. Is this possible?
August 3, 2016 at 4:56 pm #1147401Andras
KeymasterHello Amal,
Welcome to the forums and thanks for reaching out with this question.
It is possible to do that with a bit of customization. For this I recommend using a child theme, otherwise your changes will be lost when the theme gets updated.
Here is what you need to do:
- In your theme folder create the folders tribe-events/month (So the full path will be something like this: wp-content\themes\{your-theme}\tribe-events\month\
- In that month folder create a file called tooltip.php and paste the following code in it:
<script type="text/html" id="tribe_tmpl_tooltip">
<div id="tribe-events-tooltip-[[=eventId]]" class="tribe-events-tooltip">
<h4 class="entry-title summary"><a href="[[=permalink]]">[[=raw title]]</a></h4><div class="tribe-events-event-body">
<div class="tribe-event-duration">
<abbr class="tribe-events-abbr tribe-event-date-start">[[=dateDisplay]] </abbr>
</div>
[[ if(imageTooltipSrc.length) { ]]
<div class="tribe-events-event-thumb">
<a href="[[=permalink]]"><img src="[[=imageTooltipSrc]]" alt="[[=title]]" /></a>
</div>
[[ } ]]
[[ if(excerpt.length) { ]]
<div class="tribe-event-description">[[=raw excerpt]]</div>
[[ } ]]
<span class="tribe-events-arrow"></span>
</div>
</div>
</script>
Save the file and check the result. Now the image and the title of the event should have a link in the tooltip.Let me know how this works out.
Cheers,
AndrasAugust 4, 2016 at 11:24 am #1147740Amal
ParticipantThis worked. thank you!
August 4, 2016 at 3:20 pm #1147860Andras
KeymasterGreat, I’m glad it helped.
I am going to go ahead and close this ticket, but if you need help on this or something else please post a new one. We’ll be here to help you out.
Cheers,
AndrasPS: If you like our plugin, we would be happy to receive a review in the wordpress.org repository. Thanks!
-
AuthorPosts
- The topic ‘Hyperlink the title of the tool tip’ is closed to new replies.
