WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
Custom Widget template is too strict (1 post)

  1. Misamee
    Member
    Posted 3 years ago #

    I need to add some jQuery to my custom templated widget (events-list-load-widget-display.php).

    The problem is that this template contains only the event item elements.

    What I need is to add also the jQuery script to call when the widgets is included.
    In a nutshell, I need to add this code outside the

      " tag.

      I could use functions.php or some other places but this would add the script to all pages, whilst would be better to add the script only when needed.

      Maybe there is a hook or a filter I could use?

      Any tip?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic