Forum Replies Created
-
AuthorPosts
-
ixorraParticipantThis reply has been marked as private.ixorraParticipantThis reply has been marked as private.ixorraParticipantThis reply has been marked as private.ixorraParticipant
Do you have a private message method for me to give you a link and login?
ixorraParticipantI have updated to the most recent theme version and still have the issue with the auto-start function.
Strangely auto-start will work when I am logged in as admin, but not as a subscriber.
Any other ideas to try?ixorraParticipantI received the following information from the LearnDash support team –
………….
When we activate the theme and run our own test Vimeo lesson we get the same, the video does not auto-start. LearnDash Video Javascript sets up the standard jQuery( document ).ready(function() {} hook function. This will get called when the page elements finish loading. But it never gets called. The videos work for YouTube because YT has it’s own JS library and ‘ready’ logic. It doesn’t need jQuery.Looking at the JS console we see some errors https://dl.dropbox.com/s/3jagtxjyz2w598y/20170627-074535-ipc0b.png?dl=0 most notably is the one “Error: Syntax error, unrecognized expression: a[href*=#]” within jQuery. This is what is causing jQuery to not call the LD ready hook. Basically jQuery is just stopping.
Looking into the theme code we search for the pattern ‘a[href*=#]’. Found a few hits in the theme JS files. So we started disabling these lines one by one and found the lines affecting the jQuery error. In the theme file js/main.js lines 138-152 is the JS function highlight_menu(). Within this function there are a number of jQuery calls using that selector pattern ‘a[href*=#]’. The problem is the ‘#’ is somewhat reserved and needs to be escaped so instead of using ‘a[href*=#]’ it needs to be written as ‘a[href*=\\#]’ (not the double backslashes before the #.
This is the function before: https://dl.dropbox.com/s/nd5kt09lf82vi3j/20170627-080031-4ajxq.png?dl=0
and after with escaped ‘#’: https://dl.dropbox.com/s/0n6qob9xgavxstg/20170627-080108-g6ezk.png?dl=0
…………..
– Thanks -
AuthorPosts