Add plugin js files to footer is not working

Product:

All WonderPlugin Products

Question:

In the plugin, settings menu, I checked the option "Add plugin js scripts to the footer", but the plugin js files are not added to the WordPress footer.

Answer:

The plugin is using WordPress hook wp_footer to print the plugin js scripts to the footer. wp_footer is one of the most essential theme hooks.

The problem is because your WordPress theme does not call the WordPress function wp_footer() and the hook is not enabled. Please contact your WordPress theme provider and ask for how to support the wp_footer hook.

For more details about wp_footer hook and wp_footer() function, please view: https://codex.wordpress.org/Plugin_API/Action_Reference/wp_footer and https://codex.wordpress.org/Function_Reference/wp_footer.

Multiple jQuery loaded in WordPress

Question:

I have a website in progress, I used Wonderplugin for WordPress and as I came across on the development, I cannot get it working.

I already uploaded images and configured everything on WordPress.

I also copied the shortcode to the php page that I am working on. But the carousel does not show up.

Answer:

Normally this problem is because there are multiple jQuery files added to your WordPress.

You can view the HTML source code of your webpage, and check how many jQuery are added in your website.

In Google Chrome, you can view the HTML source code with menu View -> Developer -> View Source, then search text "jquery" in the source code.

There should be only one jQuery in the webpage, which is added by the WordPress system.

Some plugins add their own jQuery to the website, and this is not correct.

A plugin should always use the system installed jQuery, and the js files added from a plugin will be added after the system jQuery.

A jQuery will destroy all other jQuery functions that are added before it. So if a plugin adds its own jQuery, it may destroy other jQuery functions.

To fix the issue:

In the plugin, Setting menu, you can try to check the option "Add slider js scripts to the footer". This option will place the plugin js file to the footer and will fix the problem in most cases.

If the above option is not working, you can try to disable all other plugins and see whether the WonderPlugin works. If it works, you can then enable the plugins one by one, and find the plugin that causes the problem.

If WonderPlugin is still not working after you have disabled all other plugins, then the extra jQuery may have been added manually to the theme or the page, you need to find the code and remove it.

How to upgrade to a new version without losing existing work

This is a tutorial for how to upgrade the plugin to a new version manually. You can use this tutorial to upgrade a free or commercial version to its latest version.

There are two methods to upgrade the plugin to its latest version manually:

The First Method:

To upgrade to the latest version without losing your existing work, you can take the following steps:

  1. In your WordPress backend, goto the plugin menu Settings, make sure there is an option "Keep data when deleting the plugin" and the option is checked. The option is checked by default. This option is only available after certain versions. Do not use this method if there is not this option in your plugin. Please use the following second method instead.
  2. In your WordPress backend, goto the menu Plugins -> Installed Plugins, deactivate the plugin and delete it. When deleting the plugin, ignore the warning "Are you sure you wish to delete these files and data" and click the button "Yes, Delete these files and data". This is a standard warning from WordPress.
  3. Install the new version plugin zip file and activate it.
  4. Clear all possible caches:

    • If you have installed a WordPress js/css minify plugin or WordPress cache plugin for example, W3 Total Cache or WP Super Cache, empty all caches from the plugin.
    • Some of the web hosts, for example, GoDaddy, DreamHost, will also cache web files. You need to clear caches of the web hosting before testing. Please contact your web hosting provider and ask about how to clear caches.
    • Clear caches of your web browser before testing.

The Second Method:

If the first method does not work for you, you can use the following method:

  1. Unzip the new version .zip file at local hard disk.
  2. FTP/upload the unzipped folder to your WordPress web server, inside the folder wp-content/plugins/, and overwrite the existing folder with the same name. Please make sure you have overwritten the existing folder. When there is a folder name conflict, some ftp software or file manager will create a duplicated folder rather than overwriting the existing one. In this case, you can delete the existing folder first then upload the new version folder.
  3. Clear all possible caches:

    • If you have installed a WordPress js/css minify plugin or WordPress cache plugin for example, W3 Total Cache or WP Super Cache, empty all caches from the plugin.
    • Some of the web hosts, for example, GoDaddy, DreamHost, will also cache web files. You need to clear caches of the web hosting before testing. Please contact your web hosting provider and ask about how to clear caches.
    • Clear caches of your web browser before testing.