Skip Navigation

[Resolved] AJAX Slider function with Enfold Theme not working – FOLLOW UP

This support ticket is created 5 years, 9 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 4 replies, has 2 voices.

Last updated by peterT-9 5 years, 9 months ago.

Assisted by: Nigel.

Author
Posts
#1195292

Hi Nigel,

this is a follow up from my closed ticket https://toolset.com/forums/topic/ajax-slider-fnction-with-enfold-theme-not-working/

This is the answer from Enfold Support team:

Thanks for the update.

The theme doesn't interfere, at least not directly, with any of those scripts but it is possible that the scripts they depend on such as "jquery migrate" are being disabled. Please ask the plugin author for script name and the list of dependencies it relies on.

// https://developer.wordpress.org/reference/functions/wp_register_script/

Best regards

Peter

#1195323

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Peter

Sorry, I'm waiting for feedback from one of my colleagues who doesn't work Mondays, so I won't have any more input before tomorrow.

I'll keep you posted.

#1195326

Hi Nigel,

no problems

Have a nice day

Peter

#1195991

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I've passed that on to my colleague.

We haven't had much luck coordinating with the Enfold theme authors before, but he has a new contact that he is dealing with where we can hopefully resolve this as well as the main issue of not being able to display Views templates with the Enfold theme.

I'll let you know when my colleague has any updates.

#1199662

I got the following feedback from the Enfold support team:

Hi,

'They are deregistering the WP core script wp-mediaelement, which then breaks the enqueuing of Views assets.'

Yes, that is true. We actually added a filter in case something like this happens.

add_filter( 'avf_enqueue_wp_mediaelement', 'avia_always_load_mediaelement', 10, 2);
function avia_always_load_mediaelement($condition, $options)
{
	$condition = true;
	return $condition;
}

Just add it in the functions.php file. That filter will force the wp-mediaelement to load regardless of the theme’s requirements.

I have implemented this on my site and it works like a charm, no negative side effects so far.

I hope this also helps other developpers using Enfold theme together with Toolset