I switched to Twenty Fifteen theme and the player is rendered well
How can I find the source of this problem with in my theme?
Hi,
on your test page you have a javascript error that is probably blocking the audio player:
Uncaught Error: Syntax error, unrecognized expression: .overlay–navigation a[href*=#]:not([href=#])
This error is due to conflict between your theme and the latest WordPress 4.5 update. Check if the theme has updates or search for the
.overlay--navigation a[href*=#]:not([href=#])
string in the theme javascript file and replace it with:
.overlay--navigation a[href*='#']:not([href='#'])
Bye,
Matteo
Thank you
I did find that string and changed it to the new line.
It did allow the player to render and work but hero sliders and other hero content disappeared from the front-end.
Also, code editor suggested that there is a syntax error in the new line.
I will also let the theme author know about this issue.
Now I changed the line back to original but site behavior doesn’t go back to how it was before 🙁
got some response from theme author.
They still didn’t relese their WP 4.5 theme update so he gave a temporary solution by downgrading jQuery on the frontend with adding the following code to the child theme’s functions.php file:
if (!is_admin()) {
wp_deregister_script('jquery');
wp_register_script('jquery', ("https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"), false, '1.11.3');
wp_enqueue_script('jquery');
}
The player appears now and functions
The only issue is that after clicking the play button and then the pause button it does fold in nicely as you can see in this page
I would appreciate your time to take a look
Thanks!
@electro-z: It’s a strange behavior. I’m not able to reproduce your issue on my instances and you don’t have any javascript error, but it seams the plugin is not able to set the display:none to the elements when the player closes.
I’ll try to figure out why but as I told you I’m not able to reproduce it…
I Sent you a PM via your website
Any chance for support on this one.
It will be a shame to let this plugin go…
Hi,
I spent some time trying to understand why the player has such strange behavior on your site and I found out that the problem is a conflict within some function inside the
http://digital.org.il/desertsculpture.info/wp-content/themes/mies/assets/js/main.js file.
That files contains more than 12000 lines of code and is quite impossible to debug.
Bye,
Matteo
Thank you for your efforts!
Hope to use it in some other project.