Get 15% Discount on All Our Plugins

Skip to content
RexTheme
  • Plugins
    • WP VR
      WP VR – Quality WP Virtual Tour CreatorCreate stunning virtual tours easily, on your own, using 360 Panoramas.
    • Product Feed Manager
      Product Feed Manager For WooCommerceMaximize Sales With The Largest Marketplaces.
    • Cart Lift
      Cart Lift To Recover Abandoned CartsRecover abandoned carts for your WooCommerce Store easily.
    • Checkoutify
      Checkoutify Checkout Field Manager for WooCommerceThe Ultimate WooCommerce Checkout Customizer.
    • Catalog Mode for WooCommerce
      Catalog Mode For WooCommerceTurn your WooCommerce store into a product showcase catalog.
    • Dynamic Discount
      Dynamic Discount for WooCommerceBoost your AOV significantly with custom dynamic discount offers.
    • Advanced Shipping for WooCommerceSet conditional shipping and boost customer satisfaction.
    • Marketplace Auto-sync for WooCommerce
      Marketplace Auto Sync for WooCommerceAuto-sync products with leading marketplaces.
    • View All Plugins
  • Bundle
  • Blog
  • Resources
    • Docs
    • Support
    • Brand Assets
  • My Account
    • Log In
  • NL
  • DE

WP VR

How can we help you?

Documentation

Cart Lift

17
  • Getting started
    • Introduction To Cart Lift
    • Install And Activate Cart Lift
    • A Basic Plugin Overview – Cart Lift
    • Configure And Use Cart Lift Effectively
  • Troubleshooting Common Issues
    • Troubleshooting For Common Issues – Cart Lift
  • Upgrade To Cart Lift Pro
    • How To Upgrade To Pro – Cart Lift
    • License Plan Upgrade Guide for Cart Lift Pro
  • Abandoned Cart Recovery Conditions
    • How To Track Abandoned Carts Automatically
    • How To Set Up Your Abandoned Cart Recovery Campaign
    • How To Use Twilio SMS Service To Recover Abandoned Carts – Cart Lift Pro
    • How To Get Notifications For Abandoned Carts And Recovery
    • Get Full Analytics Report On Recovery Campaign
    • Shortcodes for Email Fields in Cart Lift
    • How to Pause / Resume Individual Abandoned Cart Recovery
    • How To Set Condition To Automatically Delete Abandoned Orders After A Particular Number Of Days
    • Exclude Carts From Abandoned Cart Recovery Campaigns Based On Conditions
    • How To Configure Popup Editor

Product Feed Manager

104
  • Getting Started
    • Introduction To Product Feed Manager For WooCommerce
    • Getting Started With Product Feed Manager For WooCommerce
    • How To Install And Activate PFM
    • How To Generate Product Feed For The First Time
    • Basic Plugin Overview – Product Feed Manager For WooCommerce
    • How To Generate A Custom Product Feed Easily
  • Upgrade To PFM Pro
    • License Renewal for Product Feed Manager Pro
    • Product Feed Manager VAT/TAX Policy
    • License Plan Upgrade Guide for Product Feed Manager Pro
  • Auto-Sync To Google Shopping
    • How To Auto-sync Product Feed To Google Merchant Center
    • Upload your WooComerce product feed directly to the Google Merchant Center – (No Need For Authorization)
  • Category Mapping
    • How To Use Category Mapping For Product Feed
    • How To Use Category Mapping For Google Product Category
    • How To Configure Category Mapping For Facebook Product Category
  • Feed Generation Instructions
    • How to generate WooCommerce Product Feed for Google With Product Feed Manager
    • How to generate WooCommerce Product Feed for Facebook
    • How to Upload your WooCommerce Products on the Facebook Store
    • How To Create A Feed For eBay MIP
    • How to create a Target Product feed for Target Marketplace
    • How to create a WooCommerce product feed for Wish.com
    • How to create a WooCommerce product feed for Sears Marketplace
    • How to create a WooCommerce product feed for NewEgg Marketplace
    • How to create a WooCommerce product feed for Walmart
    • How to create a WooCommerce product feed for Instagram Catalog
    • How to upload products on Instagram Shop
    • How to generate WooCommerce Product Feed for Amazon
    • How to generate WooCommerce Product Feed for Zbozi
    • How to Generate WooCommerce Product Feed for Skroutz
    • How To Create A Feed For eBay Seller Center
    • How to generate WooCommerce Product Feed for Rozekta
  • Understanding Basic Feed Configuration For Required Attributes
    • Product Feed Optimization with Yoast SEO Product Title, Meta Description and Primary Category
    • How To Add A Static Prefix or Suffix To An Attribute In The Feed
    • How To Add A Custom Attribute To The Feed
    • How To Add Or Remove An Additional Product Attribute In The Feed
    • Learning About Feed File Types And How To Download Or View Feed
    • Optimize Product Feed Data With Effective Output Filters
    • How To Use RankMath Primary Category In The Feed
    • Understanding The Use of Different Price Attributes
    • Understanding And Configuring Feed Attributes and Their Values
    • How To Remove HTML Tags Or Shortcodes From A Feed
    • How To Use UTF-8 Encode To Convert HTMLEntities To Symbols In A Feed Attribute Value
    • How To Convert Symbols To HTMLEntities In A Feed Attribute Value
    • How To Include CDATA In An XML Feed Attribute Tag
    • How To Remove Decimal From Price For Marktplaats Feed
    • How To Replace Space With Hyphen In A Feed Attribute Data
    • How To Use A Custom Field Value In The Product Feed
    • How To Add Currency To Your Product Price
    • How To Use Yoast Primary Category In The Feed
    • How To Exclude Draft Products From The Feed
    • How to Add WooCommerce’s GTIN, UPC, EAN, or ISBN to Product Feed
  • Useful Control Options
    • Add Extensive Custom Fields Of Unique Identifiers For WooCommerce Products
    • Add Custom Fields For Important Product Attributes
    • How To Add Extensive Custom Fields To WooCommerce Products
    • How To Exclude Tax From Structured Data Prices
    • Useful Options On Settings Tab
    • Control Products Per Batch In Batch Processing
    • Connect Facebook Pixel With WooCommerce For Dynamic Ads
    • How to set 5-Minutes Time Interval for Updating Feed
  • Useful Features For Feed Generation
    • How To Exclude Invisible Products / Hidden Products From Product Feed
    • How To Use Category Filter When Generating Product Feed
    • How To Use Tag Filter When Generating Product Feed
    • How To Use Feed Filter Options When Generating Feed
    • How To Schedule Auto-update of Feed On Set Intervals
    • How To Include Variable Products To The Feed
    • How To Include Private Products In Product Feed
    • How To Include Product Variation Term To The Product Name
    • How To Add UTM Parameters To Product URLs
    • How to use the Feed Rule feature to manipulate attribute values
    • How to combine multiple attributes values together with the Combined Attributes feature
    • How To Set Custom Time Intervals For Auto-Feed Update
    • How To Use Custom Filter When Generating Product Feed
    • How To Use The Product Filter Option To Include/ Exclude Specific Products
    • How to use the Feed Rules feature to manipulate your product price
  • Fix JSON-LD Structured Data For Variable Products
    • Fix WooCommerce (JSON-LD) Structured Data For Approval In Google Shopping
  • Others
    • How To Include Brand Name In Feed Using Perfect Brands For WooCommerce And PFM
    • Enable Error Log for Product Feed Manager For WooCommerce
    • How to include Shipping values into WooCommerce product feed (Google & Facebook)
    • How to include Tax values into your WooCommerce Product Feed (Google & Facebook)
    • How to generate a WooCommerce product feed with the top sold products to sell more
    • Update your feed only if any changes were made to any of your products
    • How to convert product feed price with WPML / WCML
    • How to generate product feed in multiple languages with Polylang
    • How To Generate Product Feed In Multiple Languages With WPML
    • How To Include Discount Rules In The Feed Using Discount Rules For WooCommerce And PFM
    • How to generate product feed in multiple languages with TranslatePress
  • Troubleshoot
    • Google Shopping Product Feed Specification – Attributes List
    • Troubleshooting Common Issues – Product Feed Manager For WooCommerce
  • All Google Feeds
    • How to create a WooCommerce product feed for Google Remarketing (DRM)
    • How to create a WooCommerce product feed for Google Local Products
    • How to create a WooCommerce product feed for Google Local Products Inventory
    • How to create a WooCommerce product feed for Google Manufacturer Center
    • How to create a WooCommerce feed for Google Merchant Center Promotion Using Product Feed Manager
    • How to create a WooCommerce product feed for Google Shopping Actions
    • How to create a WooCommerce product feed for Google Dynamic Display Ads (Google Ads)
    • How to create a WooCommerce product feed for Google Express (Former Google Shopping Actions Program)
    • How to create a WooCommerce product feed for Google Local Inventory Ads
    • How to create a WooCommerce product feed for Google Custom Search Ads
    • How to create a WooCommerce product feed for Google Dynamic Search Ads
    • How to create a WooCommerce product feed for Google Review

WP VR

89
  • Getting Started
    • Getting Started With WP VR
    • How To Install And Activate WP VR
    • How To Create A Simple Virtual Tour In 2 Minutes – WP VR
    • WP VR Basic Plugin Overview
  • Upgrade To WPVR Pro
    • How To Upgrade To Pro – WPVR
    • License Renewal Guide for WP VR Pro
    • WP VR VAT/TAX Policy
    • License Plan Upgrade Guide for WP VR Pro
  • Using WPVR Premium Add-ons
    • How To Integrate Fluent Forms On A Virtual Tour
    • How To Integrate WooCommerce To A Virtual Tour
    • How To Embed Virtual Tours On Non-WordPress Websites
    • WP VR Embed Addon – Features Overview
  • How To - Basic Settings
    • How To Use Exclusive Features On General Settings To Customize A Virtual Tour
    • How To Add A Preview Image To Your Virtual Tour – WPVR
    • How to Enable Auto Rotation For Your 360 Virtual Tour – WP VR
    • How to Customize the Tour Layout
  • Using Advanced Settings
    • How to Add A Virtual Tour Icon or Your Company Logo in 360 Degree Tours – WPVR
    • How to do SEO optimization for Embeded tour
    • How To Set Scene Transition (Scene Entrance Animation)
  • Setting Up Control Buttons
    • Using Custom Icons For Navigation And Control Buttons In A Virtual Tour
  • Turn Panorama Images Into Live Scenes
    • How To Add A Scene To Your Virtual Tour
    • How To Set Default Scene Face On A Virtual Tour
    • How To Set Custom Zoom Settings On A Scene In Your Virtual Tour – WPVR
  • Use Hotspots for Navigation & Information
    • How To Add Hotspots To A Scene In Your Virtual Tour
    • How To Use Hotspots To Show Information, Images Or Videos
    • How To Customize Hotspot Icons And Color
    • How to use the Custom Icon Class
  • Create 360 Degree Video Tours
    • How To Embed A Youtube 360 Video On Your Website Using WPVR
  • Embed Google Street Views
    • How To Embed A Google Street View Tour On Your Website Using WPVR
  • Partial Panorama & Full View Virtual Tours
    • How To Create A Virtual Tour With Partial Panoramas or iPhone Panoramas
    • How To Create A Virtual Tour With Mobile Phone Panorama Images
    • How To Create Full Screen Virtual Tours – WPVR
    • How To Set A 360 Panorama Background Virtual Tour
  • Publish Virtual Tours on Your Website
    • How to Set Up Password Protection For Your 360 Virtual Tour – WP VR
    • How to Publish Virtual Tours Using QR Code
    • How to Share Virtual Tours on Social Media
    • How To Configure A Call To Action (CTA) Button in Virtual Tour
  • Import, Export, & Duplicate Virtual Tours
    • How To Export And Import Virtual Tours
    • How To Duplicate A Virtual Tour
  • Troubleshooting - Solve Common Issues
    • How To Solve Virtual Tour Not Showing Up – WPVR
    • WP VR Tour Not Displaying on Review and On the Published Webpage
    • WP VR Troubleshooting Guide: Embedding 360 Tours on External Platforms
  • Optimize Virtual Tour for Mobile Devices
    • How To Set A Dynamic Front End Notice On Virtual Tours For Mobile Phone Viewers
    • How To Auto Resize Images On Mobile Devices for Virtual Tours
    • How To Set Custom Height for Mobile Devices to Your Virtual Tours
  • Demo Virtual Tours
    • Basic Virtual Tour
    • Demo Partial Panorama Virtual Tour – WPVR Pro
  • Advanced Settings for Virtual Tours
    • How To Set Up WPVR Exclusive Settings
    • Control Script And Style Loading For The Virtual Tours
    • How To Disable WordPress Large Image Handler For Virtual Tours
    • How to Control Video.js Loading for Virtual Tour Pages – WPVR
  • WP VR Plugin Integrations
    • WP VR & Dokan Integration: Empower Vendors to Create 360° Virtual Tours

Dynamic Discounts for WooCommerce

9
  • Getting Started
    • How To Install & Activate the Dynamic Discounts for WooCommerce
    • How To Create A Discount Rule For The First Time
    • Basic Plugin Overview – Dynamic Discounts for WooCommerce
  • Discount Conditions
    • How To Set Product Based Discount
    • How To Set Cart Based Discount
    • How to Set Discount Conditions for Bulk Purchases in WooCommerce
    • How To Set Discount Conditions Based on Customer Purchase History
    • How To Set Discount Conditions For Product Variations
    • How To Apply discount To The cheapest product In The Cart

Checkoutify

4
  • Getting Started
    • How To Install & Activate Checkoutify Pro – Checkout Customizer
    • How to Replace Your WooCommerce Checkout Using Checkoutify – Checkout Customizer
    • How To Create and Customise an Order Bump
    • How to create a custom field in checkoutify

Advanced Shipping for WooCommerce

12
  • Getting Started
    • How To Install & Activate The Advanced Shipping For Woocommerce
    • How To Add Advanced Shipping To An Existing Shipping Zone
    • Basic Plugin Overview – Advanced Shipping For Woocommerce
  • Shipping Conditions
    • How to Add Shipping Conditions For All Purchases in Advanced Shipping
    • How to Add Price Based Shipping Conditions in Advanced Shipping
    • How to Add Quantity Based Shipping Conditions in Advanced Shipping
    • How to Add Weight Based Shipping Conditions in Advanced Shipping
    • How To Set Product-Specific Shipping Conditions
    • How To Set Category-Based Shipping Conditions
    • How To Set Shipping Conditions Based On WooCommerce Product Tag
    • How To Set Shipping Conditions Based On WooCommerce User Role
    • How To Set Shipping Conditions Based on Product’s Weight, Volume, Length, Height, and Width

Catalog Mode for WooCommerce

3
  • Getting Started
    • How To Install & Activate the Catalog Mode for WooCommerce
    • Basic Plugin Overview – Catalog Mode For WooCommerce
  • Settings
    • How To Set Users Rules For Catalog Mode

Marketplace Auto-Sync for WooCommerce

3
  • Getting Started
    • How To Install & Activate Marketplace Auto Sync
    • Basic Plugin Overview – Marketplace Auto Sync
    • How To Set Up A Auto Sync For The First Time
  • Home
  • Docs
  • WP VR
  • Troubleshooting - Solve Common Issues
View Categories

WP VR Troubleshooting Guide: Embedding 360 Tours on External Platforms

If you’re experiencing issues embedding WP VR tours on external websites or advertising platforms, this guide will help you resolve common errors related to iframe embedding and direct links.

Problem #

When trying to embed a 360 tour from your WordPress site on an external platform, you may encounter errors like:

  • The link is not recognized or doesn’t display properly.
  • An error such as “Refused to connect” or “X-Frame-Options: SAMEORIGIN” appears.

Cause #

The issue typically arises because of browser security headers (e.g., X-Frame-Options or Content-Security-Policy) set by your WordPress site or server. These headers may restrict the tour from being embedded on external websites.

Solutions #

There are several ways to resolve this issue. Depending on your technical expertise and setup, you can choose from the following solutions:

Solution 1: Enable Embedding for Specific Domains via functions.php #

You can allow embedding only on specific external platforms by adding custom code to your WordPress theme’s functions.php file.

Steps:

  1. Open your theme’s functions.php file.
  2. Replace:
    YOUR_PAGE_ID with the ID or slug of the specific page
    https://example-platform.com with the URL of the external platform.
  3. Add the following code:
function allow_iframe_for_specific_domains() {
    if (is_page('YOUR_PAGE_ID')) { 
        header('Content-Security-Policy: frame-ancestors \'self\' https://example-platform.com;');
    }
}
add_action('send_headers', 'allow_iframe_for_specific_domains');

Solution 2: Use a Content-Security-Policy Header #

Modern browsers recommend Content-Security-Policy (CSP) over X-Frame-Options. You can add a CSP header to allow embedding on specific domains.

Add CSP Header in functions.php:

function add_content_security_policy() {
    if (is_page('12029')) { // Replace '12029' with the specific page ID or condition.
        header("Content-Security-Policy: frame-ancestors 'self' https://your-platform-domain.com;");
    }
}
add_action('send_headers', 'add_content_security_policy');

Solution 3: Modify the .htaccess File #

If you have server access and want to adjust the headers site-wide, edit the .htaccess file.

Steps:

  1. Access your WordPress root directory and open the .htaccess file.
  2. Add this snippet:
<IfModule mod_headers.c>
<FilesMatch ".*">
    Header set Content-Security-Policy "frame-ancestors 'self' https://your-platform-domain.com;"
</FilesMatch>
</IfModule>

3. Save the changes and reload your site.

** Use frame-ancestors ‘none’; or SAMEORIGIN for other pages if you want to restrict embedding site-wide except for specific pages.

Solution 4: Use a Plugin to Manage Security Headers #

For a code-free approach, you can use a plugin to configure security headers. Some recommended plugins include:

  • HTTP Headers
  • WP Content Security Policy

Configure the plugin to add:

  • For X-Frame-Options: Use ALLOW-FROM https://your-platform-domain.com.
  • For CSP: Use frame-ancestors ‘self’ https://your-platform-domain.com;.

These plugins simplify header management and ensure compatibility.

Solution 5: Contact Your Hosting Provider #

If you’re unable to modify the files or install plugins, contact your hosting provider. Request them to:

  • Adjust the X-Frame-Options or Content-Security-Policy headers to allow embedding from specific domains.
  • Provide assistance if server-level restrictions are causing the issue.

Important Notes #

  • X-Frame-Options is an older standard and supports only basic directives like DENY, SAMEORIGIN, or ALLOW-FROM. However, ALLOW-FROM is deprecated in modern browsers.
  • Content-Security-Policy (CSP) is the preferred method for controlling iframe embedding.

Tips for Testing #

  1. After implementing a solution, clear your browser cache and refresh the page.
  2. Test the direct link or iframe embedding on the external platform to confirm it works.

Still Facing Issues? #

If none of the above solutions resolve your issue:

  • Verify that the external platform supports iframe embedding.
  • Contact our support with details about the platform and the specific error message for further assistance.
Still stuck? How can we help?

How can we help?

Updated on January 28, 2025
Table of Contents
  • Problem
  • Cause
  • Solutions
    • Solution 1: Enable Embedding for Specific Domains via functions.php
    • Solution 2: Use a Content-Security-Policy Header
    • Solution 3: Modify the .htaccess File
      • Solution 4: Use a Plugin to Manage Security Headers
      • Solution 5: Contact Your Hosting Provider
    • Important Notes
    • Tips for Testing
    • Still Facing Issues?
RexTheme

Stay updated with our latest releases and useful guides.

By subscribing RexTheme you agree to Privacy Policy.

Products

  • WP VR
  • Product Feed Manager
  • Cart Lift
  • Checkoutify
  • Dynamic Discount
  • Advanced Shipping
  • Catalog Mode
  • Marketplace Auto-sync
  • Bundled Products

Resources

  • Terms of Service
  • Privacy Policy
  • Refund Policy
  • Affiliate Policy
  • Support Policy
  • Bug Bounty Program

Company

  • Blog
  • Documentations
  • Affiliate Program
  • Brand Assets
  • Contact Us

Copyright © 2013 - 2025 RexTheme