-
AuthorPosts
-
December 1, 2019 at 1:08 pm #1161594
Hello,
I have a page on my website that is using HTML5 audio controls.
By default the audio files overlap if more than one is played. (HTML5 audio issue)The solution is to use a javascript to control the files. So on this same page
I am using a javascript to handle the controls so the audio files do not overlap when played.How can I add the javascript and get it work on that single page?
-
This topic was modified 5 years, 11 months ago by
LDesp.
December 1, 2019 at 8:13 pm #1161661any moderators on for assistance? Thanks
December 2, 2019 at 1:45 am #1161703I have tried using all the plugins to embed javascript into the header or footer and into single pages and none of them seem to work. I have also tried to hard code the script into the page source with the built in editors and that does not work. I am not sure what im doing wrong. Any help is appreciated.
Thanks
December 2, 2019 at 6:39 pm #1161959I could not get the java script to work so I ended up getting rid of the java code entirely and used a plugin without script to achieve the desired results.
You can close this ticket now.
Thanks for assistance
-
This reply was modified 5 years, 11 months ago by
LDesp.
December 2, 2019 at 7:32 pm #1161983Hey,
Glad you figured it out!
For future reference and readers, you can refer to this post – https://kriesi.at/documentation/enfold/add-custom-js-or-php-script/#add-a-script-to-footer-section and use the code as following to target specific page using ID
//------------------------------- // Custom script in footer //------------------------------- function custom_script_name(){ if(is_page( 3739 )){ ?> <script> // Your script here </script> <?php }} add_action('wp_footer', 'custom_script_name');Best regards,
Yigit -
This topic was modified 5 years, 11 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
