Hello Chris,
Great question. It looks like the site is running version 1.3.9 (automatic updates were added in version 2.0) so we’ll need to do this manually. Here’s how:
- Go to the Appearance section in your WordPress dashboard and choose Edit.
- From the list of files on your right, choose custom-js.php and find this section:
<?php if ( is_singular( 'podcast' ) ) { ?>
// Media Element
jQuery('audio').mediaelementplayer();
<?php } ?>
and delete it.
- Save your changes.
Hopefully that will fix things up. In the event it doesn’t you may also need to edit the scripts.php file and delete these lines:
if ( is_singular( 'podcast' ) ) {
wp_enqueue_script( 'mediaelement' );
}
and
// Enqueue Styles
// Add media element style
function organizedthemes_style_retister() {
if( !is_admin()){
wp_register_style('mediaelementcss', get_template_directory_uri() . '/js/mediaelement/mediaelementplayer.css', '', NULL, 'screen' );
}
}
add_action('init', 'organizedthemes_style_retister');
// enqueue styles
function organizedthemes_load_mediaelement_style() {
if ( is_singular( 'podcast' ) ) {
wp_enqueue_style('mediaelementcss');
}
}
add_action('wp_enqueue_scripts', 'organizedthemes_load_mediaelement_style');
If you have any trouble, let me know.
Thanks,
Bill