How To Use the Popup Builder

Welcome to your Ocean eComm Treasure Box dashboard!

The Popup Builder feature of your Ocean eComm Treasure Box (Ocean eCommerce) premium plugin enables you to create different types of popups:

  • Custom (using Elementor or Gutenberg), and
  • Simple popups (using OceanWP prebuilt templates).

Enable the Popup Builder

As of Ocean eComm Treasure Box version 1.3.0, you have the ability to build an unlimited amount of popups.

To enable the Popup Builder feature:


  1. Go to your eCommerce OTB main Dashboard,
  2. navigate to the Modules menu,
  3. toggle the option next to the Popup Builder feature, and
  4. Save Changes.

Enable the Popup Builder from the Modules panel

After that, reload (refresh) your page.

Access the Popup Builder Settings

After enabling the Popup Builder feature and refreshing the page, under the eCommerce OTB navigation menu in the WordPress dashboard, you'll notice two additional options:

  • Custom Popups, and
  • Simple Popups.

Available Popup settings for the Ocean eComm Treasure Box addon

Depending on the type of popup you want to build, choose the option you need.

Create Custom Popups

The Custom Popups feature enables you to build popups using Gutenberg (default WordPress editor) or Elementor page builder.

Which type of popups content you actually prefer, we leave up to you 🙂

To create a custom popup, navigate to the Custom Popups option in your WordPress dashboard, and click the Add New button.

Click Add New button to create a new custom popup

Once you've done that, you need to give your custom popup a name (Title). Without a name, WordPress will not save the file (not even as a draft), and the name is for internal use only (visible only to you).

Add a title for Custom Popup and save as draft

Once your custom popup template has a name, you can choose whether to create a popup with Gutenberg or Elementor.

Build Custom Popups Using Gutenberg

After adding a title, you can now continue adding content using the default WordPress editor - Gutenberg.

What content you're going to add is entirely up to you.

Once you're satisfied with the content, you can now proceed with the Popup Settings, placed below the content area and which we're going to cover here in detail.

Custom Popup settings display

Custom Popup settings consist out of two tabs:


  1. General Settings, and
  2. Advanced Settings.

Custom Popup General Settings contain the following options:

  • Show on Whole Site: when this feature is enabled, your popup will display on the entire website without exception. Likewise, when you select this option, the Select Pages (next option) will be hidden.
    • Exclude Pages: this option is available when you want to display the popup on your entire website but exclude specific pages only (like, My Account, etc). Use CTRL + left mouse click (Win) or CMND + left mouse click (Mac) to select multiple pages. This feature is available as of Ocean eComm Treasure Box 1.4.0 version.
  • Select Pages: Use this option if you want to display the popup on specific pages only. Use CTRL + left mouse click (Win) or CMND + left mouse click (Mac) to select multiple pages.
  • Select Trigger: Use this option to choose what even will trigger the popup to display. Available options are:
    • On Load: on page (website) load.
    • On Click: use a custom CSS class to load the popup on button click.
    • On Hover: use a custom CSS class to load the popup on the hover event.
  • Popup Delay: Amount of seconds that needs to pass between the trigger event and popup display. For example, add the value 15 for the popup to display 15 seconds after the page has been loaded.
  • Autoclose Delay: Amount of seconds the popup is displayed then closed automatically if the user doesn't close the popup themselves. For example, add the value of 30 if you want to display the popup for 30 seconds. Once 30 seconds expires, the popup will automatically close itself. To display the popup correctly, ensure this value is greater than 0.
  • Popup Display Mode: Use this option to choose how many times the popup should display. Use this option in combination with your Trigger event.
    • Every time: The popup will display absolutely every time based on the trigger event. Best suitable for the On Click and On Hover trigger events.
    • One Time per Session: The popup will display only once per user session. Best suitable for the On Load trigger event.
    • One Time: The popup will display only once.
  • Popup Size: Use the percentage options to create a dynamic popup size, or use the option Custom to enter custom width and height for the popup.
  • Enable Overlay: display a background when popup is displayed and choose a custom color for it.
  • Select Position: Choose the position of the screen where the popup will display. For example, center of the screen, bottom left corner of the screen etc.

Custom Popup Advanced Settings contain the following options:


  • Close Button: Choose whether the user should click the close button to close the popup or the ESC key on their keyboard.
  • Disable on Mobile: choose whether or not to display popups on mobile devices.

Once you've gone through all settings, save your changes and that's it.

Of course, you can always revisit your settings and make adjustments per need.

Build Custom Popups Using Elementor

Building custom popups with Elementor functions in the same way as building custom popups with Gutenberg.

Your popup needs to have a title, and then you'll be adding content using Elementor (instead of Gutenberg). As you can see, it's quite simple.

The only difference is, Popup Settings are available below the content editor, as well as inside Elementor editor too. Both options are synced. This means that whatever changes you make using Popup Settings inside the Elementor editor will also be applied to the Popup Settings in the Metabox area.

To access Popup Settings inside the Elementor editor:

  1. click the cog icon at the bottom corner,
  2. expand the Popup Settings panel,
  3. apply your settings.

Applying Popup Settings inside Elementor editor


All settings function exactly like the above explained settings.

Apply your settings and save or publish your design. Readjust settings per need.

That's it! Your popup is ready to help you grow your business.


Custom popup display on website frontend

Create Simple Popups

The Simple Popups feature enables you to build popups using OceanWP prebuilt popup templates, no builders necessary.

The preview area enables you to preview your changes and customization live, making popup creation a piece of cake.

To create a simple popup, navigate to the Simple Popups option in your WordPress dashboard, and click the Add New button.

Adding a new simple popup through OceanWP settings

Next you'll see a screen where which contains:

  • Popup title area,
  • Popup preview area, and
  • Popup Settings.

Simple popup content area display

Of course, you'll Add a Title for your popup and then move on to the next step, which is to choose from one of our templates.

To access Ocean Popup Builder Settings, click the cog icon in the upper corner of the toolbar.

Access Ocean Popup Settings by clicking the cog icon

If you're using a distraction free mode and not seeing the cog icon, click the kebab menu (3 vertical dots), and select the Ocean Popup Builder option to preview the settings.

Access Ocean Popup Builder settings through the kebab menu

The Ocean Popup Builder consists out of 3 panels:

  1. General,
  2. Content, and
  3. Style.

The General panel is open by default and contains all the settings the Custom Popup builder does, plus the option to choose the Popup Style:


  • Show on Whole Site: when this feature is enabled, your popup will display on the entire website without exception. Likewise, when you select this option, the Select Pages (next option) will be hidden.
  • Select Pages: Use this option if you want to display the popup on specific pages only.
  • Select a Popup Type: Choose between one of the 3 available styles.
  • Popup Delay: Amount of seconds that needs to pass between the trigger event and popup display. For example, add the value 15 for the popup to display 15 seconds after the page has been loaded.
  • Autoclose Delay: Amount of seconds the popup is displayed then closed automatically if the user doesn't close the popup themselves. For example, add the value of 30 if you want to display the popup for 30 seconds. Once 30 seconds expires, the popup will automatically close itself. To display the popup correctly, ensure this value is greater than 0.

  • Select Trigger: Use this option to choose what even will trigger the popup to display. Available options are:
    • On Load: on page (website) load.
    • On Click: use a custom CSS class to load a popup on button click.
    • On Hover: use a custom CSS class to load a popup on hover event.

  • Popup Display Mode: Use this option to choose how many times the popup should display. Use this option in combination with your Trigger event.
    • Every time: The popup will display absolutely every time based on the trigger event. Best suitable for the On Click and On Hover trigger events.
    • One Time per Session: The popup will display only once per user session. Best suitable for the On Load trigger event.
    • One Time: The popup will display only once.


  • Select Position: Choose the position of the screen where the popup will display. For example, center of the screen, bottom left corner of the screen etc.

  • Enable Overlay: display a background when popup is displayed and choose a custom color for it.



  • Popup Size: Use the percentage options to create a dynamic popup size, or use the option Custom to enter custom width and height for the popup.
  • Close Button: Choose whether the user should click the close button to close the popup or the ESC key on their keyboard.
  • Disable on Mobile: choose whether or not to display popups on mobile devices.

Once you've gone through the General settings, it's time to add content through the Content panel.

Depending on the Popup Type you selected, you'll have the following options available:

  • title,
  • text,
  • button text,
  • image.

Adding content to the Simple Popup builder

Now you have to style your popup, through the Styles panel.

The preview area will enable you to view all changes in real time and adjust everything in a breeze.

Styling the Simple Popup through the Styles panel

Once the styling is done, all you need to do is publish your popup and that's it!

How to Use Popups with Click and Hover Triggers

Whether you'll use a Custom or a Simple popup, you can display both types on Click and Hover events. This means that your popups can be displayed when users click buttons, icons, hover over specific sections or areas.

To add such popups, first you need to select the desired Trigger Event.

When your popup is published, navigate back to the main page (Custom Popups or Simple Popups), to preview all popups you created.

Preview all popups created in the popups dashboard

As displayed in the screenshot above, if a popup is set to trigger on Click or Hover, it will contain an automatically generated unique Trigger Class.

Likewise, if a popup is set to display only on specific pages as opposed to the entire website, the section Assigned Pages will contain the list of those pages.

To display your popup using the Click or Hover event, you need to copy the trigger class next to the popup. The Trigger Class format is: popup-trigger-XXX where the XXX represents the ID of the popup.

In the Trigger Class name, we also placed the dot (.) in front to clearly indicate it's a custom class. However, you'll be using this class without the dot.

Let's show you an example.

Let's say you have a button you want to display your popup when users click on it, like on the screenshot bellow:

website section template design example

Since our template was built using Elementor, will edit the template in Elementor page builder.

The next step is to select the Button widget we used in our design (you will select any widget or block of yours, depending on what you're trying to achieve).

Then we'll navigate to the Advanced tab of that widget.

In the CSS Classes area, you will paste the Trigger Class of the popup you wish to display and have previously copied. And remember, without the dot.

Adding a custom CSS class to an Elementor widget

Now you need to save your changes and everything is setup and running.

That's it!

Happy website building!

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.