-
AuthorPosts
-
January 8, 2017 at 2:11 am #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.
January 9, 2017 at 12:02 pm #731080Hey 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,
AndyJanuary 10, 2017 at 3:35 pm #731584So 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.
January 11, 2017 at 8:37 pm #732295Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.