-
AuthorPosts
-
September 18, 2018 at 9:16 am #1011154
Hello,
The display of audio playlist is broken
I’ve tried disabling all performance settings to see if it would fix the issue, but no successFrom what I can see (comparing to the default theme “Twenty Seventeen”)
it’s not loading :
wp-includes/js/mediaelement/mediaelementplayer-legacy.min.css
wp-includes/js/mediaelement/wp-mediaelement.min.cssSeptember 18, 2018 at 1:22 pm #1011255Hey pharefm,
Here is a thread for you to consider
If you need further assistance please let us know.
Best regards,
VictoriaSeptember 18, 2018 at 1:56 pm #1011287I’ve just read that thread, but couldn’t find any solution
September 18, 2018 at 3:23 pm #1011348Hi pharefm,
The solution offered there is to use Enfolds’ audio element.
Best regards,
VictoriaSeptember 18, 2018 at 4:44 pm #1011384That’s not an option, we’re using a plugin for podcasts that outputs the default playlist element
When can we expect a fix, it used to work just fine beforeSeptember 19, 2018 at 9:14 am #1011666Hi,
The Media script is deactivated by default since Enfold 4.4.x (to increase the loading performance). To fix the issue please add this code to your child theme functions.php:
add_filter( 'avf_enqueue_wp_mediaelement', 'avia_always_load_mediaelement', 10, 2); function avia_always_load_mediaelement($condition, $options) { $condition = true; return $condition; }
to load the Media script by default on your website.
You also need to modify the functions.php file of the parent theme – this customization won’t be necessary with the next theme update.
Please open up enfold/functions.php and replace:
$condition = !( isset($options['disable_mediaelement']) && $options['disable_mediaelement'] == "disable_mediaelement" ) && av_video_assets_required();
with
$condition = !( isset($options['disable_mediaelement']) && $options['disable_mediaelement'] == "disable_mediaelement" ) && av_video_assets_required(); $condition = apply_filters( 'avf_enqueue_wp_mediaelement', $condition, $options );
Best regards,
PeterSeptember 19, 2018 at 9:24 am #1011673Thank you for the fix
-
AuthorPosts
- You must be logged in to reply to this topic.