Guides & Tutorials

Add a pop-up subscription form to webpage

How to add a pop-up subscription form to your webpage?

Pop-up forms are a quick and easy way to grow your subscriber base by offering them value in exchange for their email address. This is a detailed guide to adding a pop-up subscription form to your website.

You can add pop-ups to your webpage using Smaily landing page forms and a third party service. Some examples:

Creating landing page form in Smaily

Create a new landing page form in your Smaily account and design it. Here are some manuals to help you design the landing page:

NB! If you create a landing page with two side-by-side blocks (e.g picture on the left and form on the right), then the minimum with for the landing page (including paddings) should be 770px or more, for it to not change for iframe.

Preparing the iframe code

  1. Copy the code below somewhere you can modify it easily. For example a word document or notes.
    <iframe width="600" height="600" style="width: 600px; height: 600px; border: 0px;" src="COPY_LANDING_PAGE_URL_HERE"></iframe>
  2. Open your landing page form in a new window (in landing pages view click on “share”).
  3. On your keyboard press Ctrl + Shift + C or right-click on the form and choose inspect and then click on the upper left button with small arrow in a box to inspect the elements. This will open the browser tools and activate your mouse for inspection. If you move your mouse on the landing page you can see info about the landing page elements.
  4. Element width and height are marked on the GIF. These numbers are important to define the iframe width and height.

In the picture you can see that the landing page width is 500px. You can add this width to your iframe code as well. Landing page height can be found when you move your mouse next to the landing page (on the background). It will show you the whole landing page parameters, where you can get the landing page height.

Example iframe code would be something like this then:

<iframe width="500" height="367" style="width: 500px; height: 367px; border: 0px;" src="https://demo.sendsmaily.net/landing-pages/ba244eea-1627-4521-9e4a-acc4ed5231d6/html/"></iframe>

Creating the pop-up using Poptin as an example

  1. Go to https://www.poptin.com/
  2. Create a new account or log in.
  3. Choose “Popups” from the left menu
  4. Click on “New poptin”
  5. Choose your goal (“What’s your goal?”) – in example “Grow email list” was chosen.
  6. Choose the template to build your pop-up on. We chose “Build your own Popup” and clicked on “Customize”.
  7. Add a name to your poptin and insert the domain you wish to add the pop-up to.
  8. The poptin editor will open, where you can start building your pop-up.
  9. Delete the text element in the template.
  10. In the left menu set the poptin width. Insert the same numbers that you added to the iframe code.
  11. From the left menu find the category “Add elements” and click on the HTML element. It will be automatically added to the template.
  12. Click on the HTML element in the template and then click on “Change HTML”.
  13. Copy the iframe code in the opened modal and click “Save”.
  14.  Drag the html element to the right place and size.
  15. Click on the “preview” button to see how the pop-up looks.

Adjusting the poptin settings.

If your visuals are set then you can start changing the poptin display settings.

  1. On the left menu find the category “Advanced settings”, where you can modify the entry and exit effects, etc.
  2. When those are set, continue to the next display settings by clicking “next” in the upper right corner.
  3. In the next step set the display triggers.
  4. If everything is set, then finish creating the poptin by clicking on “Publish”.
  5. In the left menu go back to the popups page and click on the popup you just created.
  6. Click on the “Installation code” button and choose to which platform you want to add the pop-up to. You can choose “Any website” and copy the code. Follow the instructions given, to add the pop-up to your webpage.

Creating the pop-up using Elfsight as an example

  1. Go to https://elfsight.com/popup-widget/
  2. Create a new account or log in.
  3. If you are new, click on “Create Widget” button to get started.
  4. Type in the search bar “popup” to find the correct widget.
  5. Click on “Popup” to select the widget.
  6. Choose your pop-up base template and click on “Continue with this template”.
  7. Under the “BLOCKS” menu delete all the elements and click on “Add Block”.
  8. Choose “iFrame” from the blocks menu.
  9. In the iFrame settings, add your Smaily landing page’s URL into the “URL…” field.
  10. Change the iFrame height in the menu to fit the form in the pop-up.
  11. Click “Back” to access the pop-up settings again.
  12. If necessary, change the pop-up background color and select a name for your pop-up.
  13. Finish setting up the pop-up by changing the layout and settings information and then click “Publish”.
  14. Copy and paste the code into desired place of your website (HTML editor, website template, theme, etc.) and that’s it.
Elfsight_popup_example_gif