Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

How to embed registration forms in your WP theme with iframes

How to embed registration forms in your WP theme with iframes

How to embed registration forms and maps into your own WP theme to maintain branding with RegisterONE Smart-Embed.

RegisterONE forms and mapping are designed to maximize usability and responsiveness for all sizes of screens when they are displayed without extra formatting, headers & footers. But if you want to maintain the branding and look of your website, you can generally serve the forms and maps from within your own WP design using the RegisterONE iframe shortcode.

Smart-Embed shortcodes were introduced in WP Plugin v3.2. Make sure you are using version 3.2 or higher.

The steps involved in embedding your forms and mapping into your WordPress Theme are:

  • STEP 1: Create a Page and add your form or map shortcode as a stand-alone form or map with the RegisterONE Blank Template seleted. This is your RAW form page served WITHIN an iframe.
    • Shortcode:
      [registerone_form form_key="123456"]
    • Example URL: https://www.yoursite.com/form-123456/
  • STEP 2: Create a Page and use the RegisterONE iframe shortcode to point to your content URL. This page will include your own theme template selected.
    • Shortcode:
      [registerone-iframe page_url=https://www.yoursite.com/form-123456/]
    • Example URL: https://www.yoursite.com/registration-form-2020

The page that you create in step 2 will be the one you will link to in your menu system for registration and will be displayed with the look and feel of your own theme.

TIP: For better usability, you want your forms & maps to appear as close to the top as possible. Try to reduce the amount of “stuff” between the navigational elements of your theme and the iframe shortcode. This will reduce the amount of scrolling to navigate the forms and your users will appreciate it!

Registering your branded form page in RegisterONE.

When you finish your branded form page, the last thing to do is to paste the page URL into your Form > Settings > iframe Embed page.

form iframe settings
Forms > Settings > iFrame Embed

 

add iframe url
Add your iframe URL from step 2.

Setting the iframe URL on this page tells RegisterONE to reference your branded form page instead of the default form location. If you don’t set the iframe page location, any links sent to applicants will revert to the default location, or the “content” form page setup in Step 1.

Caveats and pitfalls of using iframes

Using iframes in your page will slow your page down a bit because the page is effectively two pages in one (the parent page and the content page loaded in your iframe). In most cases, the delay will be small, but still noticeable.

There’s also no way to prevent someone from displaying the form page by itself, or breaking out of the iframe and your theme. But this isn’t much of a concern because the applicant can still do what they need such as register, etc.

Outside of this, the applicant will not know that the form in within your iframe. Because you are running your content form and branded page on the same domain, this avoids security issues related to cross-domain iframes.

Caching Plugins

Caching plugins are used to speed up the display of content on your website. If you have a caching plugin setup in WordPress, such as WP-Optimize, you should EXCLUDE the form page from caching in your plugin setup. In WP-Optimize, it’s under [Cache > Advanced Rules].

Example of the excluded page in this example would be the page with the registerone_form shortcode:

  • https://www.yoursite.com/form-123456/

 

Share this post

Leave a Reply