Skip Navigation

Views AJAX operations or Media Uploads in Forms will fail when the Enfold theme is active

Won't fix

Reported for: Toolset Views 2.7.2

Symptoms

There is a compatibility issue between the Toolset Views plugin and the Enfold theme that appears when using AJAX operations on a View.

If you have a View that uses automatic AJAX pagination, for example, the first page of the slider will not load and the automatic pagination will not start.

Other issues might appear during AJAX search, and/or in the display of the Loop Layout while using AJAX.

The problem is that the Enfold theme dequeues the wp-mediaelement script. However, Views requires this script to make the AJAX operations work.

Additionally, this breaks the Media Upload screens on Toolset Forms.

Workaround

As a workaround, the theme author of Enfold suggests using one of the following two solutions:

  1. Adding the following code to the active theme’s functions.php file (see this forum thread):
    add_filter( ‘avf_enqueue_wp_mediaelement’, ‘__return_true’ );
  2. Or, go to Enfold theme options, click the Performance tab and choose to always load “Self hosted videos and audio features (WP-Mediaelement scripts)” (see this forum thread).

 

This will stop the theme from dequeuing the scripts. We suggest contacting the theme developer in case there are issues with this filter or setting.

One thought on Views AJAX operations or Media Uploads in Forms will fail when the Enfold theme is active

Leave
a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>