Installing your Embed Code to WordPress (Entire Domain)

Follow

This article describes how to install your Unbounce Popup or Sticky Bar on your WordPress domain. 

To install your Popup or Sticky Bar on certain pages only, see steps on how to install your embed code on single pages or posts in WordPress.

What You’ll Need:

Installing your Embed Code to WordPress (Entire Domain)

In your Unbounce Account: 

  1. In the Unbounce app, navigate to the Popup/Sticky bar page that you’d like to install.
  2. Scroll down the page to the Installation panel.
  3. Click the Copy button to copy the embed code.

In your Wordpress Account: 

  1. Log on to your Wordpress Admin and click on Appearance on the left side menu.
  2. Select Editor from the drop-down menu.
  3. Scroll down the Theme Files menu on the right-hand side of the screen. Select Theme Header (header.php).
  4. Paste your Popup/Sticky Bar embed code within the script, anywhere between the <head> and </head> tags.
  5. Click the blue Update File button at the bottom left-hand corner of the screen to save your changes.

You’re done! Navigate to your WordPress domain to check out your new live Popup/Sticky Bar.

If you plan to update the header.php file in the future, you may overwrite the Popup/Sticky Bar embed code. Always double-check the presence of your embed code after making changes to the header.php file. 

Note:

Only one embed code from each client can be added to a page at a time. If more than one embed code is added to a page, only the first one to load will fire.