Hyperlink the title of the tool tip

Home Forums Calendar Products Events Calendar PRO Hyperlink the title of the tool tip

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1147397
    Amal
    Participant

    Hi,
    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?

    #1147401
    Andras
    Keymaster

    Hello 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:

    1. 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\
    2. 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,
    Andras

    #1147740
    Amal
    Participant

    This worked. thank you!

    #1147860
    Andras
    Keymaster

    Great, 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,
    Andras

    PS: If you like our plugin, we would be happy to receive a review in the wordpress.org repository. Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Hyperlink the title of the tool tip’ is closed to new replies.