Display signup form on multiple pages

  • 5 May 2022
  • 1 reply

Userlevel 1
Badge +4

Hi I want create a signup form test for mobile users only on my website ( I need the form to display in several places though, home page and article pages. See below for examples of article pages.

Instead of installing the code snippet on every article page, which there are a lot of, is there a blanket approach to targeting & behavior? Thanks!


Best answer by alex.hong 6 May 2022, 01:48

View original

1 reply

Userlevel 7
Badge +58

Hi there @vylla001,

Thanks for sharing with the Community.

Quick question, are these Klaviyo forms that you are utilizing or are you using custom forms? 

Klaviyo forms, unfortunately, cannot have custom code applied to them. What you can is create a custom legacy form that will allow you to add custom code to your forms. This also might have to be behavior that is looked at for your entire website. 

In order for you to successfully install a Klaviyo form on a Wordpress site, first, you will need to manually add the Klaviyo JS to your main theme file. Reference (it's for Shopify but it's the same script).
Typically, you should see a footer.php located under Appearance tab > Editor. That's where you would add the klaviyo.js script. You then create a form that will only appear on the URL for your page and have it add to a separate list you have for the page subscribers.

However, if you want to use Klaviyo forms I’d recommend looking through this community post:

and respective HC articles to set that up as well.