Forum Replies Created
-
AuthorPosts
-
Sorry for the delay.
Now it seems to work perfect.
Yo can mark this post as solved.
Thank you so much.
Here you have login credentials:
Im using a child theme.
You can check page Inicio. That is where the slider is.
April 12, 2018 at 11:38 am in reply to: Time code for Youtube videos when full screen slider #940862Hi Ismael:
I have tried adding this code to my functions.php as you suggested:
add_action('wp_footer', 'ava_iframe_parameters'); function ava_iframe_parameters(){ ?> <script> (function($){ function avia_iframe_parameters_mod(container) { var iframe = $('iframe[src*="youtube.com"]', container), youtubeEmbed = $('iframe[src*="youtube.com"] object, iframe[src*="youtube.com"] embed', container).attr('wmode','opaque'); iframe.each(function() { var current = $(this), src = current.attr('src'); if(src) { if(src.indexOf('?') !== -1) { src += "&autoplay=0&showinfo=1&rel=0"; } current.attr('src', src); } }); } avia_iframe_parameters_mod('body'); })(jQuery); </script> <?php }
I have been playing with several parameters in that code (autoplay, time, rel …) and that does not work.
It seems that this function does not overwrite the main function.
- This reply was modified 6 years, 8 months ago by dogdayfear.
Ok, here is the site working again: http://www.casaelcortijo.es
Created a Fullscreen Slideshow: first an imge. After that a full screen Youtube video: https://www.youtube.com/watch?v=WiO3CASTXxA&t=30 that gives the error..
If you include in the URL of the video the time code like “&t=30” it does not work. Otherwise the video works without problem.
- This reply was modified 6 years, 8 months ago by dogdayfear.
Of course:
You can check for the site to load. First there is an image. After that is a full screen Youtube vide using time code. And it gives the error.
UPDATE: I downloaded and installed las version of Enfold.
Now it does not work:
- This reply was modified 6 years, 8 months ago by dogdayfear.
-
AuthorPosts