Javascript error with mediaelementplayer
-
Great work with the theme – it’s fantastic.
I noticed a JS error with ligonberry 1.24:
Uncaught TypeError: Object [object Object] has no method 'mediaelementplayer'
It looks like the mediaelement-and-player.min.js script was not being included. To patch it I added the following line to lingonberry_load_javascript_files in functions.php:
wp_enqueue_script( 'lingonberry_mediaelement' );
I’m not very familiar with WP theme dev, so there may be better ways of fixing this.
Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Javascript error with mediaelementplayer’ is closed to new replies.