How to Create a Popup on Your WordPress Website

A popup is a small window or tab that appears on your website when someone clicks on an element such as a link or image. The advantage of having a popup is that it encourages the user to continue exploring your site since they have more content to read. It also provides a small taste of what is to come in terms of new content offerings on your site. For these reasons, they are often considered as a more effective marketing tool than displaying banners on your site. In this article, we will discuss various methods of including popups on your WordPress site.

The Anatomy of a Perfect Popup

A perfect popup usually contains the following elements:

  • Heading
  • Paragraph
  • Button
  • Image
  • Additional content

As you can imagine, the anatomy of a perfect popup can be quite the opposite of that of a typical banner ad. While banner adverts appear in the middle of your web page, popups usually appear at the top or bottom. This means that your visitors have to actively pursue this new content or feature on your site before they even notice the ad.

Additionally, since popups are usually quite small in comparison to ads, they are less likely to annoy or distract from your regular Website traffic.

The Best Locations For Popups On Your Site

In terms of where to put popups on your site, there are a few prime positions that seem to work well. These are as follows:

  • Top
  • Bottom
  • Inside content
  • Footer
  • Hero area (for images)
  • Feature area (for links)
  • Aside area (for anything else)

Taking our cue from the above list, you can see that the perfect popup should roughly fit in one of the following categories:

  • Top (at the very top of your page)
  • Bottom (at the very bottom of your page)
  • Hero area (for images)
  • Feature area (for links)
  • Aside area (for anything else)

Since our Website traffic tends to be driven by search results and organic reach, it is generally advisable to put popups at the top of your page. This means that your search visitors will see the popup when they visit your site for the first time. In general, the top of a page has the highest potential for distracting the reader from the content above it. This is why they are often considered not-so-perfect locations for popups. In order to appear perfectly on your site, place the popup at the bottom.

Why Use Shortcuts For Elements That Will Eventually Become Popups

As we’ve established above, popups are usually quite small in comparison to the rest of your page’s content. This means that the text that appears inside them is generally short and to the point. Typically, we see a heading, a paragraph, and then a call to action or additional information. When this content is boiled down to its essence, we are left with only the bare essentials:

  • A button
  • An image
  • Additional content

Since the above content is so minimal, it is often convenient to simply cut and paste this code into an HTML document and then insert it on your site. Once inserted, all of the above will become a popup. In order to provide your visitors with a nice, clean appearance, use style sheets to format the HTML document containing all of the above content.

Doing this allows you to simply drag and drop the above content into your WordPress dashboard and begin populating your site with fresh new content.

How To Create A Popup On Your WordPress Site With A Simple JQuery Script

If you’re a fan of minimalism, you might consider using a tool called TinyPNG to turn your images into minimalist content. With TinyPNG, you can literally cut out all of the extra padding and borders in order to create a thumbnail. Additionally, since these are simply miniature images, the file size is usually quite small. For this reason, using TinyPNG to create thumbnails for your Website’s content can greatly reduce your server’s load on a daily basis.

If you’ve got content on your Website that you’d like to insert into a popup, consider using JavaScript. With JavaScript, you can create a popup whenever you wish with the following, minimal code:

  • A heading

  • A paragraph

  • A button

  • An image

  • Additional content

As you can see, this is quite a bit of code, but it’s worth the short amount of time that it takes to load. When you compare this to the time it would take to code a similar function using only PHP, the clear winner is JavaScript.

The Pros And Cons Of Displaying Popups On Your Site

As a user, the most fascinating part of a popup is usually its appearance. When a visitor sees that a site offers popups, they will usually assume that this is simply a design consideration and not an integral part of the functionality of the site. For these reasons, they can sometimes appear gimmicky or even irritating. On the other hand, popups can provide a great deal of value to a site as a whole. By including them on your site, you can get a better idea of how interested your users are in your content and whether or not this is a worthwhile venture for your business.

The Bottom Line

In summary, popups are a very effective tool for drawing more traffic to your site. Since people have to actively seek out this content, it often shows up at the top of a search result page. In order to fit perfectly into your WordPress site, place it at the bottom.