Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #730773

    Hi,

    I want to remove the mediaelement bits, which I don’t use. I saw a reply to a previous post in which Josue suggested removing the lines below from functions.php.

    wp_enqueue_script( ‘wp-mediaelement’ );
    wp_enqueue_style( ‘avia-media’ , $template_url.”/js/mediaelement/skin-1/mediaelementplayer.css”, array(), ‘1’, ‘screen’ );

    I’m assuming that this relates to a media player and not the media library? I found a clip elsewhere that seemed to also disable the media library, which I don’t want to do!

    Unfortunately, I’m using a child theme and don’t want to have to remember the parent functions.php whenever there’s an update, so how do I remove them using the child functions file?

    Thanks

    • This topic was modified 7 years, 10 months ago by brian7454.
    #731080

    Hey brian7454,

    this is not a theme related question, but a general WordPress one. So feel free to ask about this in general WordPress forum.

    Best regards,
    Andy

    #731584

    So excuse me if I sound a little stupid here, but you’re telling me that the file enfold/js/mediaelement/skin-1/mediaelementplayer.css is not an Enfold file and that I should go and ask about it in WordPress forums? How many other things inside the Enfold theme folder are WordPress and nothing to do with Enfold?

    In a previous question the same day you also told me that the Enfold archive page isn’t an enfold page but a wordpress archive page and if I want to know how to sort posts I should go ask wordpress.

    Is your job here to say that the answer to every question has nothing to do with enfold and to tell everybody to go and use the wordpress forums? Seems so because the third question asked, about usernames in plain view on post pages was totally ignored. I guess that’s a wordpress issue too and you didn’t want to repeat yourself?

    What happened to support offering support?

    • This reply was modified 7 years, 10 months ago by brian7454.
    #732295

    Hi,

    can you explain further about the elements you’re referring to please? a screenshot and a precise link would help to understand your issue. If you want to disable Enfold’s media element script, then use this code inside functions.php:

    add_action('init', 'avf_remove_media_element', 10);
    function avf_remove_media_element()
    {	
    	wp_deregister_script('wp-mediaelement');
    	wp_deregister_style('wp-mediaelement');
    } 

    Best regards,
    Andy

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