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

Create Cookie On the Click of an Element Within Your Popup

If you are not already familiar with using custom JavaScript, check out our getting started guide.

Example #

Let’s say you have an Auto Open popup that triggers as soon as people visit your site—no matter what page the person visits, you want the popup to open. That means the popup is a sitewide popup. Inside the popup are two images: clicking either one of the images puts you down Path A or Path B.

Once someone chooses their path, you don’t want them to continuously be spammed by your popup. So, you should set a cookie after they click an image—this method works with any HTML element (text, image, link, etc.).

First, set up your Cookie using the Manual JavaScript setting in the Popup Editor.

After clicking Add, you will be able to customize every aspect of how your Cookie will behave. For detailed explanations on all of the cookie settings and features, check out the Cookie Settings and Features Doc.

Add and Edit Manual JavaScript #

Copy, paste, and edit the code below either in your parent or child theme functions.php file, or use the My Custom Functions plugin.  

The placeholder parameter ‘css-selector-for-the-close-button’ should be replaced with the HTML ID or class attribute assigned to the target page element. See the following related article for guidance on finding CSS selectors on your site. 

Related article: Getting CSS Selectors

Replace the popup ID number in the code example with the value assigned to your popup. You can find the ID under the  Popup Maker > All Popups > CSS Classes column. The integer value is appended to the class name ‘popmake-‘

<?php
/**
 *  Note 1: Replace the placeholder string below ('css-selector-for-the-close-button')
 *  with the actual CSS selector (HTML ID or class attribute) assigned to the target
 *  attachment (for example, image or graphic).
 *
 *  Note 2: Replace the popup ID used below ('#popmake-123') with the
 *  value '#popmake-{integer}' used within your popup.  From the WP Admin, refer
 *  to 'Popup Maker' -> 'All Popups' -> 'CSS Classes (column)' -> to find
 *  the popup ID.
 *
 *  Add the following code to your theme (or child-theme)
 *  'functions.php' file starting with 'add_action()'.
 * -------------------------------------------------------------------------- */
add_action( 'wp_footer', 'my_custom_popup_scripts', 500 );
/**
 *  Close a popup by targeting a specific HTML element within a popup container.
 *
 * @since 1.0.0
 *
 * @return void
 */
function my_custom_popup_scripts() { ?>

    <script type="text/javascript">

        (function ($, document, undefined) {
            $('css-selector-for-the-close-button').click(function (e) {
                $('#popmake-123').trigger('pumSetCookie');
            });
        }(jQuery, document))

    </script><?php

}

View the source on GitHub.

If you need another example with more screen captures, head over to our beginner-friendly step-by-step instructions for manually creating cookies.

Leave the first comment

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