Click To Subscribe Genesis eNews Widget In Popup

This code creates a popup widget which you can populate with the Genesis eNews Subscribe widget. When you click the link or button, it darkens the screen and displays the form like you see in the following animated image.

click-to-subscribe

The code works in any theme and is tested in the Genesis Sample child theme by StudioPress.

Widget Setup

Simply populate the Popup Subscribe widget area with 2 widgets.

  1. A text widget which includes HTML for your content ( sample HTML included ).
  2. The Genesis eNews Subscribe widget which connects to your email list provider and works in any theme ( including non Genesis themes ).

widgets

Code Installation

There’s 5 steps:

  1. Add the CSS to the end of your child themes style.css file.
  2. Add the popupform.js file to your child themes js folder.
  3. Add the PHP code to the end of your child themes functions file.
  4. Add the HTML code for the link anywhere you like in your theme.
  5. Add the rainbow-border.png to your child themes images folder

Tracking Clicks

Simply track clicks using Google Analytics New Campaign URL Builder or Simple URL’s

Here’s the code for logged in members:


Comments

Leave a Reply

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.