How to use a button to trigger a WordPress popup

Product:

Wonder Popup

Tutorial:

This tutorial will guide you how to use a button or text link to trigger a WordPress popup created with the plugin Wonder Popup. At the end of this tutorial, we will also show you how to trigger the popup using a button created with the plugin MaxButtons https://wordpress.org/plugins/maxbuttons/.
Continue reading

How to load Wonder plugin JS files as non-render blocking and improve the webpage loading performance

Product:

All Wonder Plugins

Tutorial:

By default, Wonder plugins load the plugin JS files in the WordPress header. While this provides best compatibility with all kinds of WordPress themes, JS files in the header will be render-blocking. That's, the webpage will only be rendered after the JS files are loaded.

There are two methods to load the JS files as non-render blocking and fix the issue.

  • First method: load Wonder plugin JS files in the WordPress footer
  • Second method: use a third-party plugin to aggregate the JS files and load it as non-render blocking

We will also discuss plugin conditional loading at the end of this tutorial:

  • Plugin conditional loading: only load plugins on selected pages or posts

Continue reading

How to only display one category in a WordPress gallery with multiple categories

In this tutorial, first we will learn how to create a WordPress gallery with multiple categories. A demo created with the tutorial is as follows: WordPress Gallery with Category Filter. You can click the category buttons on top of the WordPress gallery to show different categories.

In some cases, you may want to add the same WordPress gallery to other webpages, but only want to display one of the category. In the second part of the tutorial, we will learn how to only display one of the categories by using gallery shortcode attributes.
Continue reading

How to send automated MailChimp welcome email to WordPress popup subscribers

This tutorial will guide you how to send automated welcome email to MailChimp subscribers that subscribed from WordPress popup forms created with the Wonder Popup plugin.

Wonder Popup is a WordPress popup plugin to create lightbox popup forms, embed forms, corner slide-in forms and notification bars that can help you get more newsletter subscribers.

For how to create an email subscription popup form with Wonder Popup, please view the tutorial: How to create WordPress email subscription popup for MailChimp.
Continue reading

Trigger popup on clicking a button in WordPress

This tutorial will guide you how to trigger a popup on clicking a button in WordPress. You can use the popup to display an email opt-in or newsletter subscription form, promote new products, deliver special offers or show videos to your visitors.

There are 4 steps in this tutorial:

  • Step 1 - Install WordPress plugin Wonder Popup
  • Step 2 - Create a popup
  • Step 3 - Enable the popup on pages or posts
  • Step 4 - Add HTML code to trigger the popup

A demo created with this tutorial is as follows:

Step 1 - Install WordPress plugin Wonder Popup

First please install the plugin Wonder Popup. You can download the Free Version from the product homepage, try it, make sure it works for you before upgrading to the commercial version.

For how to install a plugin from the downloaded plugin ZIP file, please view this tutorial: How to install a WordPress plugin from a ZIP file.

Step 2 - Create a popup

After you have installed the WordPress plugin Wonder Popup, in your WordPress backend, left menu, goto Wonder Popup -> Add New.

In the New Popup page, you can select from 4 types of forms:

  • Lightbox: Create a lightbox popup that displays in the center of the web browser
  • Embed: Embed the form into pages, posts or sidebar widgets
  • Slide In: Create a popup that slides in from corner
  • Notification Bar: Create a bar that displays on top or bottom of the web page

wordpress popup types

Step 3 - Enable the popup on pages or posts

In the popup editor, step 3 Display Rules -> Display Rules tab, make sure the popup is enabled on the page or post that you are going to add the button.

WordPress popup display rules

If you don't like the popup to show up automatically, in the popup editor, step 3 Display Rules -> Display Time, uncheck all options.

WordPress popup display time

Step 4 - Add HTML code to trigger the popup

In the page or post that you are going to add the button, switch to Text edit mode, add the following code to create a button that will tigger the popup on click.

<a href="#" class="wppopup" data-popupid=1><button>Show Popup</button></a>

Please make sure to change value of data-popupid to the ID of your own popup.