Adding "more" link to calendar's event tooltip
-
Hi Stephen,
I’d like to add a “more” permalink to the event tooltip for the full calendar. I’ve found that users are confused about how to proceed from the tooltip to the single event page, as it requires clicking on the event title within the date twice.
I noticed in event-organiser-ajax.php these lines:
//Don't use get_the_excerpt as this adds a link $excerpt_length = apply_filters('excerpt_length', 55);
I tried modifying $description to the following, without success:
$description = wp_trim_words( strip_shortcodes(get_the_excerpt()), 45 , '...' );
(I have a function that specifies the output of get_the_exerpt() ).
Then I tried adding this additional line:
$description .= '<a class="more-link" href="' . get_permalink() . '" rel="nofollow">[more]</a>';
But this also didn’t work. Do you have any suggestions?
Thanks in advance,
Suzanne
http://aim2.openairwebdesign.com/calendar
- The topic ‘Adding "more" link to calendar's event tooltip’ is closed to new replies.