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:
- Latest stable version 1.3 (recommended)
Do this:
- Install the plugin from the add-ons directory. Or download the plugin to your computer (read and follow the instructions in the WordPress documentation )
- Activate the plugin
- 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
- Save the page/article
- 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 our test form to check your installation