Brand Assets

Thanks for your interest in affiliating with Popup Maker

Below are a few guidelines for using Popup Maker’s brand resources, please take a moment to familiarize yourself with them. You can download individual assets in each section, or you can download everything all at once below.

Download All Assets

Our Name is Popup Maker

Popup Maker is two words. Always capitalize the P and the M.

Brand Name

PopupMaker

Not like this.

popup maker

Not like this.

POPUP MAKER

Not like this.

popupmaker

Not like this.

Popup Maker Colors

These are Popup Maker’s brand colors – copy the color codes below.

Brand Colors

Primary

#1dbe61

Light

#21db6f

Base

#1dbe61

Popup Maker Logo

These are Popup Maker’s marks & logos – copy or download in PNG/SVG format.

Logos & Marks

Not yet an affiliate?

Become an Affiliate
Earn commission when you recommend Popup Maker to your friends, fans & clients.
Sign Up

Popup Maker Historical Branding

These are Popup Maker’s past marks, logos & colors. Here for fun and archives.

Historical Marks, Logos & Colors
Popup Maker Logo - Archived
Popup Maker Logo - Archived
Popup Maker - Mark - Archived
Popup Maker - Mark - Archived

Primary

#9ab927

Light

#a8cb29

Base

#2d2d2d

Gray 1

#626262

Gray 2

#cacaca

Gray 3

#dfdfdf
View Categories

Close a Popup When a Link Inside the Popup Is Clicked

Overview #

If you’ve got a link to another page in your popup, this guide shows you the steps to:

1) Open that page in a new tab.

2) Close the popup after someone clicks the link.

Heads up! If you want to open another popup instead of a page in a new tab, go to Launch a Popup from a Popup or When a Popup Closes.

We’ll begin with a popup that has a simple link that opens a page in a new tab. Here’s what that HTML could look like.

<a href="https://www.website.com" target="_blank" rel="noopener">Link Text</a>

Here’s what we should see when we have a similar link in our popup, and we click on it.

As you can see, a page opens in a new tab, but the popup stays open in the first tab. That’s only half of our goal.

If you don’t want (or need) to edit a link in HTML, check out how to use the Popup Maker close button shortcode. The close button shortcode will achieve the same thing except without writing any code.

Step 1: Add popmake-close and pum-close CSS classes #

Edit your link as HTML

Add the Popup Maker CSS classes popmake-close and pum-close to your a tag. These classes tell Popup Maker to close the popup when we click that link. 

Here’s our link now.

<a class="popmake-close pum-close" href="https://www.website.com" target="_blank" rel="noopener">Link Text</a>

Here’s a demo of what we should see after adding those 2 CSS classes.

OK, cool. Our popup is closing now. But, our new tab isn’t opening anymore. What gives?

That leads us to the next step. We told Popup Maker to close the popup with 2 CSS classes. The missing ingredient is to tell Popup Maker to also open the link (i.e., do the link’s default behavior).

Step 2: Add pum-do-default CSS class or data-do-default attribute #

Add the pum-do-default class or use the data-do-default attribute to your a tag to open the new page.

Example 1: Here we add the pum-do-default class to open the link.

<a class="popmake-close pum-close pum-do-default" href="https://www.website.com" target="_blank" rel="noopener">Link Text</a>

Example 2: In this example, we add data-do-default="true" as its own link attribute to open the new page.

<a class="popmake-close pum-close" href="https://www.website.com" target="_blank" rel="noopener" data-do-default="true">Link Text</a>

Publish or Update your popup to save your changes.

Putting it all together, here’s what we should see after doing step 2.

There we have it. The link in the popup opens a page in a new tab and the popup closes in the first tab. Mission accomplished 🎉

pum-do-default CSS class versus data-do-default attribute #

Which way is better? Both and neither. They’ll do the exact same thing. It’s just a matter of preference whether you want to use a data attribute or a CSS class name.

What about the close button shortcode? # #

We can accomplish the same thing using Popup Maker’s Popup Close Button shortcode.

You can add the Popup Maker close button shortcode via the Popup Maker shortcode button menu in the classic editor’s toolbar.

If you don’t see the shortcode button menu in the toolbar, make sure your Popup Maker Settings > MiscDisable the Popup Maker shortcode button setting is not checked (it should be off by default).

From the shortcode button menu, click Popup Close Button.

In the General tab, do the following:

  1. Type the text for your link in Content text area.
  2. Select a for the HTML Tag.
  3. Enter the URL for the link in the Value for href field.
  4. Type _blank in the Target for the element field.
  5. Click Save.

In the Options tab, check the Do not prevent the default click functionality setting (turn it on). Then, click Save.

Remember to click Publish or Update to save your changes.

Leave the first comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.