Search and replace when moving WordPress site

Product:

All WonderPlugin Products

Question:

I am moving my WordPress development site to production. I did a search and replace in the WordPress database, but the images in the carousel slider still link to the old domain.

Continue reading

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.

YouTube video stays on top of tabs on iPad

Product:

WonderPlugin Tabs Plugin

Question:

I have some tabs in my homepage. When I tried it on an iPad whenever I tried to switch between tabs the content from the previous tab stayed there no matter what I did.

Answer:

I checked your webpage. It's not all contents from previous tabs. It's just the YouTube video iframe always stays on the top.

Currently, your iframe video code is as following:

<iframe width="560" height="315" src="https://www.youtube.com/embed/_mMKNw_Mlxs" frameborder="0" allowfullscreen></iframe>

To fix the problem, please add ?wmode=transparent to the end of the YouTube URL. For example:

<iframe width="560" height="315" src="https://www.youtube.com/embed/_mMKNw_Mlxs?wmode=transparent" frameborder="0" allowfullscreen></iframe>

Add links to previous and next tabs

Product:

WonderPlugin Tabs Plugin

Question:

It would be useful to have shortcode links to use for "next tab" and
"previous tab".  These shortcodes would allow tab content to be added
or moved without the user having to generate new URL links.

Example problem:

Tab 1 content has a link at the bottom of the page for "More" which
opens tab 2.  Likewise at the bottom of tab 2 is a "Previous" link to
tab 1, and "More" link to tab 3, etc.  If the user removes tab 2 from
the set, they currently need to make new links on pages 1 and 3.  A
shortcode could recognize what tab it is on, and automatically adjust
for the adjacent tab's id.

Answer:

You can use the following HTML code to add a previous link and a next link:

<a href="JavaScript:wonderpluginTabsObjects.objects[0].switchPrev();">Goto Prevous</a>

<a href="JavaScript:wonderpluginTabsObjects.objects[0].switchNext();">Goto Next</a>

Since this is regular HTML code, you can also use a button to replace the text, for example:

<a href="JavaScript:wonderpluginTabsObjects.objects[0].switchPrev();"><button class="btn btn-success btn-small" type="button">Goto Previous</button></a>

<a href="JavaScript:wonderpluginTabsObjects.objects[0].switchNext();"><button class="btn btn-success btn-small" type="button">Goto Next</button></a>

You can view the online demo at:

https://www.wonderplugin.com/wordpress-tabs/?tabid=3

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

There are 4 steps in this method:

Step 1 - Make sure the keep data option is enabled

In your WordPress backend, goto the left menu Plugin Name (e.g., Wonder Carousel, Wonder Slider, etc) -> Settings, make sure there is an option Keep data when deleting the plugin and the option is checked. The option is checked by default. If your current version is very old, it may not have this option. In this case, do not use this method, use the following second method instead.

Step 2 - Deactivate and delete the old version

In the WordPress backend, goto the left 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.

Step 3 - Install and activate the new version

In the WordPress backend, goto the left menu Plugins -> Add New, click Upload Plugin, select the downloaded new version plugin zip file, install and activate it.

Step 4 - Clear WordPress Caches

  • If you have installed a WordPress js/css minify plugin or WordPress cache plugin for example, Autoptimize, W3 Total Cache, WP Rocket, WP Fastest Cache, WP Super Cache, empty all caches from the plugin.
  • Some web hosts, for example, GoDaddy, WPEngine, SiteGround, 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 you are using a very old version, you may need to use this method to upgrade the plugin. There are 3 steps in this method:

Step 1: Install the new version plugin via FTP

First please extract the new version plugin ZIP file to a folder on your computer, then upload the extracted Plugin folder to the wp-content/plugins folder in your WordPress FTP server.

When a ZIP file is extracted, some unzip software may add a parent folder outside of the Plugin folder. Please make sure you have uploaded the Plugin folder, not its parent folder.

If your WordPress already has an old version installed, make sure to overwrite the existing folder in the server. Or you can delete the old version files first then upload the new version files.

Step 2: Make sure the plugin is activated

In your WordPress backend, left menu, Plugins -> Installed Plugins, find the plugin from the list, make sure the plugin is activated. If it's not, click the Activate link.

Step 3 - Clear WordPress Caches

  • If you have installed a WordPress js/css minify plugin or WordPress cache plugin for example, Autoptimize, W3 Total Cache, WP Rocket, WP Fastest Cache, WP Super Cache, empty all caches from the plugin.
  • Some web hosts, for example, GoDaddy, WPEngine, SiteGround, 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