WordPress integration

Embed Orizn widgets in WordPress

Step-by-step guide to add visa, budget, and travel widgets to your WordPress site in under 2 minutes.

WordPress powers more than 40 percent of the web, and adding an Orizn widget takes about a minute — two ways. Fastest: install the official Orizn Travel Widgets plugin (download below) and get a native Gutenberg block, a shortcode and a settings page that applies your affiliate code site-wide. Or go plugin-free with a Custom HTML block and the two-line snippet, as described in the steps below.

Official plugin

Native Gutenberg block, [orizn_widget] shortcode, and a settings page that applies your affiliate code to every widget on your site. Upload the zip via Plugins → Add New → Upload.

Download the WordPress plugin (v1.0.0, 9 KB)
Tested with WordPress 6.7 (Gutenberg)Free forever

What you'll get

Three quick wins

🛂

Visa checker on every destination guide

Drop a pre-filled visa widget into every country post so readers stop bouncing to Google.

📈

Zero maintenance

Visa rules update in real time on our side. Your post never goes stale.

💸

Affiliate revenue from day one

Add your ORIZN-XXXXX code once. Every guide purchased earns you 50 percent for 30 days.

Setup

Step-by-step in WordPress

Five concrete steps from opening the editor to hitting publish.

1

Open the post in the block editor

From the WordPress admin, go to Posts → All Posts, hover the post you want to edit, then click Edit. Make sure you are using the Block editor (Gutenberg), not the Classic editor — if you see the TinyMCE toolbar with Visual/Text tabs, switch by deactivating the Classic Editor plugin or use Step 5's workaround.

2

Add a Custom HTML block

Click the + (Add block) icon where you want the widget to appear. In the block picker search for 'Custom HTML' (under Widgets). You can also type /html on a new line — Gutenberg autocompletes the block.

3

Paste the snippet

Copy the snippet below and paste it into the Custom HTML block. The block has no preview by default — click the Preview tab at the top of the block to see the widget render inline before publishing.

4

Preview the page

Click the Preview button (top right) → Preview in new tab. The widget mounts after the script finishes loading — usually 200-400 ms. If you see nothing, open DevTools and check Console: most issues are CSP rules on shared hosts.

5

Update or Publish

Click Update (or Publish for a new post). The widget is now live. If you use the Classic editor, you need either a code plugin (Code Snippets, Insert Headers and Footers) or the iframe fallback in the snippets section below — the Classic editor strips async script tags on save.

Code

The snippet for WordPress

Copy the variant that matches your setup. Switch tabs to see the affiliate or iframe versions.

html
<div id="orizn-visa"></div>
<script src="https://visa.orizn.app/embed/visa.js" async></script>

Watch out

Common WordPress pitfalls

The things that catch first-timers — fix in advance.

Classic editor strips script tags

The TinyMCE editor (pre-2018 default) removes <script> on save. Switch to Gutenberg, install a code-injection plugin, or use the iframe fallback above.

Jetpack lazy-load blocks the script

If Jetpack's lazy-load module is on, add data-no-lazy='1' to the container div or exclude visa.orizn.app from lazy loading.

WP Rocket / W3 Total Cache delays JS

Delay JavaScript Execution is enabled by default in WP Rocket. Add visa.orizn.app/embed/visa.js to the exclusion list, otherwise the widget waits for user interaction.

Shared host CSP

Hosts like SiteGround sometimes ship strict Content-Security-Policy headers. Allow script-src visa.orizn.app or contact support to whitelist the domain.

FAQ

Questions about WordPress

Do I need a plugin to embed Orizn in WordPress?

No. The native Custom HTML block in Gutenberg accepts our two-line snippet directly. You only need a plugin if you are stuck on the legacy Classic editor.

Does it work with Elementor and Divi page builders?

Yes. In Elementor, drag the HTML widget; in Divi, use the Code module. Both render the script identically to Gutenberg.

Will the widget slow down my Core Web Vitals score?

No. The script is loaded async and weighs under 15 KB gzipped. It does not block render and only fires after the DOM is interactive.

Can I put the widget in my WordPress sidebar?

Yes. Appearance → Widgets → add a Custom HTML widget and paste the snippet. It will render once per page where the sidebar appears.

Other platforms

Embed Orizn elsewhere

Ready?

Ready to embed in WordPress?

Grab the snippet, paste it where the steps above describe, and ship in two minutes.