• Resolved shahn1234

    (@shahn1234)


    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

    https://wordpress.org/plugins/event-organiser/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    Hi Suzanne,

    The calendar is cached, so changes made to the source code won’t be reflected immediately. Simply flush the cache by saving an event, and the changes should so.

    Also, I’d advise against editing the source code as your changes will be lost when you update. There are filters for altering the event description, e.g.: eventorganiser_event_tooltip.

    And that code can live in a ‘utility’ plug-in outside Event Organiser.

    Thread Starter shahn1234

    (@shahn1234)

    Awesome! The filter did the trick.

    Thanks for the great support you offer for this plugin. My hat’s off to you. 😉

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding "more" link to calendar's event tooltip’ is closed to new replies.