-
Author
-
November 30, 2013 at 02:13 #7474
luvconnexion
ParticipantHi guys, how do I keep my home page video open at all times. I need it to be visible without having to click on the button. Thanks!
December 2, 2013 at 13:43 #7556SQadmin
KeymasterHi, You need to add this javascript code to footer.php just before the wp_footer line:
COPY CODEjQuery(document).ready(function() { jQuery("a.play").each(function (e) { var videoId = jQuery(this).attr('data-videoid'); //e.preventDefault(); jQuery(".videoLoad").hide(); var videotoload = jQuery(this).attr("href"), viewportHeight = (jQuery(window).height()) - 533, scrolltovideo = jQuery("#markerPoint-"+videoId).offset().top; if (viewportHeight > 100) { scrolltovideo = scrolltovideo - (viewportHeight / 2); } else { scrolltovideo = scrolltovideo - 55; } jQuery('.play').show(); jQuery(this).addClass('disabled'); jQuery("html, body").animate({ scrollTop: scrolltovideo }, 500, function () { jQuery("#"+videoId+" iframe").attr('src', videotoload); jQuery("#"+videoId+" .videoLoad").fadeIn('slow'); jQuery("#"+videoId).slideDown(900); }); }); });
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 10, 2013 at 21:28 #8080luvconnexion
ParticipantThanks for reply. I’ve tried pasting the code, but i’m not getting any results, any ideas?
December 12, 2013 at 10:14 #8141Abe
KeymasterI have modified the code. Try again please.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.December 27, 2013 at 17:00 #8811Abe
KeymasterPlease put a link to your site to see if you indeed added it right
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.