Lightbox and Link, modify operation

Asked

Viewed 54 times

0

Good morning. This lightbox in the middle, where you ask for login and password, only appears after the user clicks on that link "Restricted Access". Is there any way that lightbox appears automatically? I have already thoroughly checked that this operation has not been configured through visual interface (plugin, theme panel or wordpress). Would they have any suggestions of configuration through code? (I can implement, in some cases). There is only interest in keeping an active management system behind this login. The commercial site that appears behind will be hidden and replaced by another, in another domain. Thank you. (Wordpress 4.4.14 with Enfold Child theme). Link

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

1 answer

0


SOLVED: The lightbox now appears automatically by changing the wp-content/themes/Enfold-Child/js/access.js file, replacing the code:

$loginButton.click(function(e){
	$lightboxWrap.show();
});

for:

$loginButton.click(function(e){
	$lightboxWrap.show();
}).trigger('click');

Browser other questions tagged

You are not signed in. Login or sign up in order to post.