Video Lock Issues

Hi there!

I’m having a problem with X Video Lock button. I made a custom jQuery function to make the delay button work with the same behavior (remove the overlay layer and stay on the same page) as the close button in the upper corner. It only works once (you have to delete the cookies and history in order to make it work again).

This is my jQuery function:

jQuery(document).ready(function($) {
$(’.x-video-lock-overlay .x-btn’).click(function(e) {
e.preventDefault();
$(‘html, body’).css(‘overflow’, ‘’);
$(‘html, body’).removeAttr(‘style’);
$(’.x-video-lock-overlay’).remove();
});
});
(function( $ ) {
$(window).load(function(){
$(’.x-video-lock-overlay .x-video-lock-btn-wrap .x-btn’).on(“click”, function(e) {
$(‘html, body’).css(‘overflow’, ‘’);
$(’.x-video-lock-overlay’).remove();
$(‘html, body’).removeAttr(‘style’);
console.log(‘button clicked…’)
e.preventDefault();
});
});
})(jQuery);

Also, I want to make a cookie to show the video lock layer only once per session.

Thanks!

Hey There,

Thanks for writing in! Regretfully, this particular customization request is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or seek help from a developer.

Thank you for your understanding.

Hi,

I’m so sorry to hear that because it’s a plugin of your company. I don’t understand why is outside of the scope, maybe you don’t want to spend time trying to help me, its easier to copy paste a default answer. This is very poor business.

I just need to know how to make the delay button behave exactly the same as the close button to stay in the same page.

Please, let’s try to found a solution because it’s a basic feature that needs to be implemented.

Hi There,

Sorry, but that is because this is not related to an issue with the theme or extension and instead has to do with your customization of it, and there is a reason why that extension is called Video Lock.

If you need the button to act as your close button, view your page source and look for the video lock script code, that should be inside <script id="x-video-lock-js"> tag. Copy that to your Theme Options > JS or page JS

Look for this line:

$('.x-video-lock-close').click(function(e) {

Add the button selector on that line which is .x-video-lock-btn-wrap .x-btn.

I’m really sorry but we cant provide support further from here.

Thank you for understanding,

Thanks for that pointer, it was helpful!

You are most welcome. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.