Audio player fault

Support Area Forums Authentic Audio player fault

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
URL to the page in question: http://www.crossnesschurch.com/podcast/jesus-son-god-part-2/
  • Author
    Posts
  • #25217
    Chris Barrowman
    Participant

    Hi Bill,
    I have the same problem as the previous posts in topic ‘Audio player fault after updating to wordpress 4.1’, topic closed now so can’t add my comment to it. Do I have to actually update the theme, or does WordPress pick up your update automatically?
    Thanks
    Chris

    #25218
    Bill Robbins
    Moderator

    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:

    1. Go to the Appearance section in your WordPress dashboard and choose Edit.
    2. 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.

    3. 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

    #25220
    Chris Barrowman
    Participant

    Hi Bill,

    That’s brilliant, thank you very much! I only needed to delete the first section of script, works fine again!

    Thanks for your speedy reply too, much appreciated. You do an amazing job – keep up the good work.

    Blessings

    Chris

    #25221
    Bill Robbins
    Moderator

    I’m glad to hear that did the trick Chris 🙂

    Have a Happy New Year and let me know if you need anything else,
    Bill

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Audio player fault’ is closed to new replies.