Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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 success

    From 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.css

    #1011255

    Hey pharefm,

    Here is a thread for you to consider

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1011287

    I’ve just read that thread, but couldn’t find any solution

    #1011348

    Hi pharefm,

    The solution offered there is to use Enfolds’ audio element.

    Best regards,
    Victoria

    #1011384

    That’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 before

    #1011666

    Hi,

    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,
    Peter

    #1011673

    Thank you for the fix

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.