URGENT pop up not displaying with custom button nor with class name
-
This should be pretty straight forward really, so I don’t know if there’s something on my theme (divi) or some other configuration. leading to the problem
I’m trying to use a custom button to trigger the popup, so I’m following the 2 ways explained inside ‘info’ tab of your plugin settings. I’ve set the url this way https://www.mysiteurl.com/path1/#login which is the page where the button is needed. Yet nothing happens, when I check my browsers’ search bar it is displaying the url entered, but the popup is not being triggered. If I refresh the page, then it is displayed. What’s going sideways? Not sure, probably you have a better idea.
When trying the other way suggested, with css, I’m using a script inside a code module which uses the button class name to in turn trigger the popup with your plugins’ class name. Nothing works.
I’ve already tried to use a shortcode to create a button, but for some reason it displays a link, although display=”button” is set on shortcode. I’m stuck now. I’ve used your plugin on other site and it’s great but never needed to use a custom button like on this occasion.
Here’s the script I’m using just in case, and which I actually found on some topic where you provided it.
add_action( ‘wp_footer’, function(){
?>
<script type=”text/javascript”>
jQuery(document).ready(function($){
$(‘.my-button-class-name’).click(function(e){
e.preventDefault();
$(‘.xoo-el-login-tgr’).trigger(‘click’);
})
})
</script>
<?php
} );
- The topic ‘URGENT pop up not displaying with custom button nor with class name’ is closed to new replies.