WP Popup Plugin (CMP) - Use Case - Add a Sticky Button That Opens a Popup on Click


Use Case - Add a Sticky Button That Opens a Popup on Click

Back to User Guide

Note: This guide covers features from the Pro version of WP Popup Plugin - This document uses version 1.7.2.

Introduction

This WP Popup Plugin allows you to show different kinds of popups on your website.

As an alternative to automatically displaying a popup, the plugin supports a sticky button feature that lets you display a button along the side of the screen or in a corner, allowing users to launch the popup by clicking the button.

Use Case Front-End

Basic sticky button example:

Basic sticky button example - WordPress Popup Form
Basic sticky button example

Corner sticky button example:

Corner sticky button example - WordPress Popups
Corner sticky button example

Use Case Assumptions

In this example use case guide, we'll cover how to display a popup that only appears when the user clicks a sticky button placed on the screen. We consider that you have already bought the plugin, but not installed it.

It follows:

Installing the Plugin

The process is the same for all CM plugins.

CreativeMinds Customer Account Dashboard - Downloads tab
CreativeMinds Customer Account Dashboard
  • Download the plugin from your customer dashboard.
  • Log in to WordPress and navigate to the WordPress Admin → Plugins settings.
  • Click on Add New.
  • Activate it and add the license.

Learn more: Getting Started - Plugin Overview


Quick Recap

In this use case we will focus on how to display a popup by clicking a sticky button. To learn more about the basic process of creating popups, please check this use case guide:

Creating a Popup Campaign

To create a popup campaign and configure a sticky button, navigate to Admin Dashboard → CM Pop-Up Banners Pro → Add New Campaign.

Adding new popup campaign - Lead Generation Plugin
Adding new popup campaign

First, let's add a title and set up the banner content - we'll use a basic image for this example.

Creating first popup campaign - Popup Campaign Plugin
Creating first popup campaign

Below in the metabox Campaign - Options, we need the section Sticky Button.

Configuring popup settings - WP Popups
Configuring popup settings

Here you can see an option Sticky button - choose Enable to turn on the feature. Once the option is enabled, a set of new options will appear below:

Enabling the sticky button feature - WP Popup Plugin
Enabling the sticky button feature

The first option below is Type - it allows you to choose between 2 types of the button:

  • Basic - In this case, you can place the button along one of the sides of the screen.
  • Corner - In this case, you can place the button in a corner of the screen.
Choosing the sticky button type - Timed Popup WordPress Plugin
Choosing the sticky button type

Each type has its own set of settings, so let’s review them separately.

Preview

There's a live preview that allows you to see how the final button will look like on the front-end:

Live preview - Best WordPress Popup Plugin
Live preview

Basic Type Settings

The settings are:

Basic type settings - WordPress Popup Form
Basic type settings
  • Placement - Choose where to place the button. You can choose between:
    • Top Left
    • Top Center
    • Top Right
    • Left Center
    • Right Center

      Bottom Left

      Bottom Center

      Bottom Right

      Note: for positions that include the word "Center", an additional option appears:

      • Position Right or Position Top - Allows adjusting the button position relative to the center.

        Moving the button from the center - WordPress Popups
        Moving the button from the center
  • Border Size - Allows you to add a border and define its size.
  • Border Radius - Allows you to define the border radius.
  • Border Color - Allows you to define the border color.
  • Background Color - Allows you to define the button color.
  • Font Size - Allows you to define the font size of the text inside the button.
  • Text Color - Allows you to define the color of the text inside the button.
  • Text - Allows you to write a specific text inside the button.

Corner Type Settings

The settings are:

Corner type settings - Lead Generation Plugin
Corner type settings
  • Placement - Choose where to place the button. You can choose between:
    • Top Left
    • Top Right
    • Bottom Left
    • Bottom Right
  • Background Color - Allows you to define the button color.
  • Font Size - Allows you to define the font size of the text inside the button.
  • Text Color - Allows you to define the color of the text inside the button.
  • Text - Allows you to write a specific text inside the button.

To publish the popup campaign, click the button Publish in the relevant metabox:

Publishing the popup campaign - Popup Campaign Plugin
Publishing the popup campaign

Front-end Examples

Now, knowing the details about settings of each type, let's configure 2 different sticky button campaigns for the basic and corner types.

Basic Type Example

Let’s place the button at the bottom - not in the center or corner, but in a custom position on the right. The background color will be green, the border color will be red, the font color will be white, and the font size will be 20px. The button text will be "Get Discount!":

Setting up basic type - WP Popups
Setting up basic type

Front-end result:

Front-end example - WP Popup Plugin
Front-end example

Corner Type Example

Let's place the button at the top left corner, with yellow background, black text, and the font size will be 20px. The button text will be the default: "Press!":

Setting up corner type - Timed Popup WordPress Plugin
Setting up corner type

Front-end result:

Front-end example - Best WordPress Popup Plugin
Front-end example

The plugin lets you see which popup campaigns have the sticky button feature enabled, directly from the campaign list in the dashboard. Navigate to Admin Dashboard → CM Pop-Up Banners Pro → Campaigns.

Navigation to the Campaigns dashboard - WordPress Plugin Popup
Navigation to the Campaigns dashboard

On that page you can see a table with all created popups. The Sticky Button column shows whether the sticky button feature is enabled for each popup campaign:

Popup campaigns dashboard - WordPress Popup Form
Popup campaigns dashboard

End Result

Following instructions found in the plugin and guides, you should be able to display a popup that appears only when the user clicks a sticky button on the screen.

Use Case Front-End

Basic sticky button example:

Basic sticky button example - WordPress Popups
Basic sticky button example

Corner sticky button example:

Corner sticky button example - Lead Generation Plugin
Corner sticky button example

More information about the WP Popup Plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.