Hi Craigrunning,
I’m not sure about the waiting circle, can you give me a screenshot about the problem?
About showing the popup on every visit, please open up the main.js file in wp-content/plugins/dw-popup-card folder, find the code below:
// first visit
var visited = $.cookie("visited");
if (visited == null) {
setTimeout(function(){
$('body').addClass('popupcard');
},1000);
$.cookie('visited', true);
} else {
$('.dw-popup-card').hide();
}
$.cookie('visited', true, { expires: 7, path: '/' });
and change it into this:
setTimeout(function(){
$('body').addClass('popupcard');
},1000);
You may need to clear your browser’s cookies to see the change.
Hope that helps!
Thanks.
Screenshot below
Thanks for the coding Kido D. Is there a way to have it only pop-up on the homepage each visit? Right now, it shows up on every page you click on my site.
Please send me your site for further checking.
Actually go to site http://www.runninggoattiming.com and see for yourself. The pop-up card will open and when you close, you will see the continuous updating ‘circle’. When you click on the site again it does go away.
When I run the site on my mobile phone, I get a JavaScript Alert: Image cannot be loaded. Make sure the path is correct and image exists. I feel the two are related, none.
The site on IE10 does not show an error message. When using Chrome a JavaScript error is shown.
Hi Craigrunning,
The problem was that prettyPhoto lightbox plugin automatically added the rel=”prettyPhoto[content]” attribute to the close button of the pop-up card .
You can go to the footer file of your theme, and add the script below just before the closing </body> tag.
<script>
jQuery(function($) {
$('.dw-popup-card-close').removeAttr('rel');
});
</script>
If that cannot resolve the problem, please add a private answer and send me the admin account of your site so that I sort thing out for you.
Hope that helps!
@stine_stein !
If you still face there issue, please create new question then we will check and help you resolve it.
Regards,
Please login or Register to submit your answer
replied 9 years ago
Sorry that should read Continuously …