Skip Navigation

[Resolved] jquery seems only to work intermittently

This support ticket is created 8 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by jonS-2 8 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#347331
screen2.jpg
screen1.jpg

I downloaded ResponsiveSlides module and am attempting to use this in my site, but it seems to only work intermittently. It "Requires jQuery to be loaded by the theme". I have tried several ways of doing this, but I must be doing it incorrectly. Can you please advise how I do this to accomplish it correctly.
I have added some screen shots to indicate what I mean by intermittently. Sometimes it works, sometimes it doesn't! screen1.jpg is what I am expecting, screen2.jpg is what I frequently get.
Thanks in advance.

#347487

Dear jonS-2,

You can enqueue Jquery JS file like this:
Add below codes into your theme/functions.php:

function theme_name_scripts() {
	wp_enqueue_script( 'jquery');
}

add_action( 'wp_enqueue_scripts', 'theme_name_scripts' );

And test again.

#347777

I believe this is fixed. But is there a reason for it working only sometimes prior?

#348331

Hi louy,

Even after adding this code to my functions.php it still comes up with the screen2.jpg version.... but only sometimes... any more ideas?

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.