开发者 | jackdewey |
---|---|
更新时间 | 2023年4月21日 09:31 |
捐献地址: | 去捐款 |
PHP版本: | 2.8 及以上 |
WordPress版本: | 6.2 |
There are typically two main reasons why Modal Dialog does not show up correctly on web pages: 1- You have another plugin installed which uses jQuery on your site that has its own version of jQuery instead of using the default version that is part of the Wordpress install. To see if this is the case, go to your site and look at the page source, then search for jQuery. If you see some versions of jQuery that get loaded from plugin directories, then this is most likely the source of the problem as they would conflict with the jQuery 1.3.2 that is delivered with Wordpress. 2- The other thing to check is to see if your theme has the wp_head and wp_footer functions in the theme's header. If these functions are not present, then the plugin will not work as expected. You can send me a link to your web site if these solutions don't help you so that I can see what is happening myself and try to provide a solution.
You can create a button or other control that calls the following javascript: parent.jQuery.fancybox.close(); = How can I manually set the cookie if I ask Modal Dialog to let me do it manually? Call the following javascript / jQuery function, setting the cookie-name to match the name entered in the Modal Dialog settings, the cookievalue and the duration to any duration that you deem acceptable. jQuery.cookie('cookie-name', cookievalue, { expires: 365 });