Audio player not working after update
-
I had a problem with the audio players disappearing every time I did an update of WordPress. After digging around in the code, I found the code that actually HIDES the audio players. Here is how you fix it:
Navigate to the wordpress directory on your server – eg. public_html/wordpress/wp_includes
Now scroll down and find the file “media.php”. Open it for editing.
On line 2268, find the following code:
'style' => 'width: 100%; visibility: hidden;',
Remove and replace the line without the visibility attribute as below:
'style' => 'width: 100%;',
Go reload your page and your audio players will be back where they belong.
Really, WordPress? Can you please take this code out of your updates?! I don’t understand why you are intentionally hiding audio players!
- The topic ‘Audio player not working after update’ is closed to new replies.