Support » Plugin: WP Intro.JS Plugin » wpIntroJs_StartTour is not defined at HTMLAnchorElement.onclick

  • Resolved zazorg

    (@zazorg)


    Hello Im getting the following error when using the shortcodes:

    (index):435 Uncaught ReferenceError: wpIntroJs_StartTour is not defined
    at HTMLAnchorElement.onclick ((index):435)
    onclick @ (index):435

    Uncaught ReferenceError: wpIntroJs_ShowHints is not defined
    at HTMLAnchorElement.onclick ((index):437)
    onclick @ (index):437

    Do you know why this is happening?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author cfuze

    (@cfuze)

    Let me take a look into this. I will get back to you shortly.

    Plugin Author cfuze

    (@cfuze)

    Are you using this on dynamically created content, i.e. the page is being loaded via AJAX? Do you have anything unusual running? I have just tested on 5.4.2 and I am not getting any errors and it executes the tour and hints as expected.

    Thread Starter zazorg

    (@zazorg)

    Yes, using divi builder with dynamic post content. Removed that and it worked perfectly! Will be using it for a dashboard so Il just modify the dashboard to not use dynamic post content.

    Or do you know a workaround to get it working with dynamically created content?

    Another issue (miner) – It seems to mess a little with the admin menu for Divi – sets a background color for the admin menu in Divi -> Theme options.

    Plugin Author cfuze

    (@cfuze)

    Dynamic content is problematic, but the easiest way is to include the tour in the ajax response, but I don’t think the short code works then. You would have to start getting into the JavaScript to pull it off. The issue is that the tour is loaded before the dynamic content arrives. As such, the elements were never found so the tour won’t work. I got dynamic content working on a different site, but it was one-off code that just wouldn’t work for everyone. I will put dynamic content on the road map, but its going to be a ways down the road.

    Regarding the background color, there must be a CSS clash at some place. The plugin itself doesn’t have CSS so it must be from the actual Intro.JS library. I would recommend bringing up an issue on their support page: https://github.com/usablica/intro.js. Hope this helps!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wpIntroJs_StartTour is not defined at HTMLAnchorElement.onclick’ is closed to new replies.