Easily embed with our WordPress plugin

ANON::form > Blog > Contact forms > Easily embed with our WordPress plugin
WordPress plugin

Although our forms work perfectly independently, which we recommend for whistleblower forms, there is also the possibility to embed all our E2EE forms as iframes in your WordPress website.

We have created a number of different options to facilitate the implementation, partly a JavaScript library that works with all modern browsers and partly with plugins for the most popular CMS: one. The main difference is where the code is executed; with JavaScript it’s in the browser and with plugins it’s the web server that does the work.

In all options, the form is embedded by entering a special shortcode in the page or article where the form is to be displayed, the shortcode is then found and replaced by the JavaScript or plugin to the code that loads the form. However, the short code looks slightly different depending on the solution, but is described in the respective article.

With our WordPress plugin, you can easily embed all types of the forms included in your ANON::form subscription by entering a simple shortcode where you enter the URL of the form you want to embed. You can use several different forms/embeddings on the same page. The embed is 100% responsive.

The plugin is tested in all WordPress versions up to and including 6.4 and can be downloaded from the WordPress plugins directory or this website:

Do this:

  1. Install the plugin from the add-ons directory. Or download the plugin to your computer (read and follow the instructions in the WordPress documentation )
  2. Activate the plugin
  3. Go to the page or article where you want the form and enter the short code [anonform link='path to your form'] in the appropriate place
  4. Save the page/article
  5. The embed is an iframe that you can easily style if you want by adding extra css if your theme allows this, then use id “anonform-app”

IMPORTANT! Your Content-Security-Policy (CSP) “child-src” HTTP security header settings must allow iframes from the URL you use for your ANON::form. If you are unable to change web server settings, read WPBeginner’s article “How to Add HTTP Security Headers in WordPress”  for more info.

Use a test form to check your installation

ANON::form offers a special test url, “https://test.anonform.com” (CSP child-src must contain https://*.anonform.com), where the configuration can be tested with different forms and languages. The forms in this test mode are fully functional but do not submit anything.

Form options (add to URL):

  • /Fce (embedded contact form, default)
  • /Fcwe (small anonymous embedded whistleblower form)
  • /Fcwxe (large embedded whistleblower form)

Languages alternatives, (add to URL):

  • /Lar (عربى)
  • /Lda (Dansk)
  • /Len (English)
  • /Lfi (Suomeksi)
  • /Lde (Deutsch)
  • /Lno (Norsk)
  • /Lpl (Polskie)
  • /Lpt (Português)
  • /Lro (Română)
  • /Lru (Русский)
  • /Les (Español)
  • /Lsv (Svenska)
  • /Lth (ไทย)
  • /Luk (Український)
  • /Lsq (Shqiptare)
  • /Lfr (Français)
  • /Lel (Ελληνικά)
  • /Lit (Italiano)
  • /Llt (Lietuvių)
  • /Ltr (Türkçe)
  • /Lbg (български)
  • /Lbs (Bosanski)
  • /Lhr (Hrvatski)
  • /Llv (Latviski)
  • /Lsr (Српски)
  • /Lnl (Nederlands)
  • /Lsw (Kiswahili)
  • /Let (Eesti keel)
  • /Lfa (فارسی اصلاح شده)

Example test url with contact form in English:
https://test.anonform.com/Fce/Len

We of course use this plugin for our own secure contact form.