Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [iframe]

A full webpage can be loaded into another webpage using an iframe. WordPress uses iframes frequently in its own interface. Using iframes in a plugin/theme also comes with certain perks.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

How do I include and iframe in a Custom Block?

Given the html block tag I can include and iframe from Google My Maps in my post. I need to create a block where the client can paste the URL from the embed code and the block render the iframe. note: ...
user avatar
  • 101
0 votes
0 answers
20 views

Caching and iframe problem [closed]

I have a page that has some select elements. On changing those elements the javascript will assign an htm file to an iframe. It all works the first time in but if whilst on one document another ...
user avatar
  • 7
0 votes
1 answer
52 views

On click load iframe [closed]

I have this html <a href="#1647278006925-e8321147-313b" data-vc-accordion="" data-vc-container=".vc_tta-container"><span class="vc_tta-title-text">...
user avatar
0 votes
0 answers
20 views

How to disable login in iframe which is hosted in same domain?

I want to disable auto login on iframe which is embeded in wordpress dashboard page. I have page(/booking) which uses login info to prefill customer data. I want to embed that page in iframe in wp-...
user avatar
  • 1
0 votes
1 answer
71 views

How do I use an iFrame for my header in Wordpress twenty seventeen?

I'm pretty new to Wordpress, and I'm currently trying to make a site using the twenty-seventeen template. My ultimate goal is to use an iFrame of a sketch I made in p5 as my header media, so that when ...
user avatar
0 votes
0 answers
9 views

Embed Latest Track (Dynamic Updating) SoundCloud

As part of the site I'm building I'm embedding some content from SoundCloud on the site. Is it possible to either embed the latest track uploaded *and have that update dynamically whenever a new track ...
user avatar
  • 1
0 votes
0 answers
28 views

If I leave out the wp_die() in the testiframe function I get the '0' appended to my output. If I put it in, the page w/ iframe linked to it crashes

add_action('wp_ajax_ajtestiframe','testiframe'); <?php function testiframe() { ?> <head> <style> .aatest1 {color:red;} </style> </head> <span ...
user avatar
  • 1
0 votes
0 answers
35 views

Pass URL to iframe in WordPress Block

I have a WordPress site with an iframe that displays custom content from an external site. Here is my iframe code: <iframe src="https://www.targetsite.com/UNIQUECODE" width="800"...
user avatar
0 votes
0 answers
24 views

A way to upload old html pages with all its assets via WordPress admin and to add a fixed menu on top of those (a la Wayback Machine)

Inside a WordPress website I manage at a custom hosting, I want to have a few joke websites that looks like personal Geocities pages from the 90s, with animated gifs and all. Generally I edit these ...
user avatar
  • 329
0 votes
0 answers
37 views

How to hide the sidebar and topbar in specific admin page

I would like to hide the sidebar and top bar (refer image below) on specific page, that is to focus on the content of the page itself. Because on this specific page, I would like to get it using ...
user avatar
0 votes
1 answer
99 views

WP.org acceptable iframe alternative

Question edited: I'm working on an alternative to iframes because WP.org balks at them and tends to reject plugins that have them (I know this from experience) So, here's the code I have to try to ...
user avatar
  • 162
0 votes
0 answers
46 views

How to stop iFrame form from reloading on mobile?

I am loading a form via an iFrame. On a desktop it works and submits correctly. However on a mobile device once the user's keyboard pops up then the iFrame refreshes, clearing the form and the ...
user avatar
0 votes
0 answers
86 views

Include User ID in iFrame URL

I seem to have hit a roadblock trying to figure out how to append the user ID to an embedded iFrame url address. I am using a third party app that tracks unique users (and invoices me accordingly). ...
user avatar
0 votes
1 answer
18 views

A message to clients in the dashboard widget received from another site

I would like to display various notifications on the dashboard of client sites. This is not a list of posts, just a message. The message itself is located on my main site. That is, I change the ...
user avatar
2 votes
2 answers
3k views

Which HTTP headers to use for subdomain <iframe> embedding?

I have a Wordpress site hosted on LightSail (which uses bitnami). The domain is https://example.com On a subdomain https://sub.example.com I have another server running. On this server, I want to ...
user avatar
  • 131
0 votes
0 answers
38 views

How can I use an iframe element as my header media?

I am currently using the twenty-seventeen theme, which allows me to display a youtube video on the homepage and images on other pages. Instead of a youtube video, I wish to display an iframe on the ...
user avatar
1 vote
0 answers
325 views

Woocommerce: Can't put items in cart in iframe and on iphone

I have the following problem: I have a Wordpress page that contains a Woocommerce store. This page is embedded in an iframe on a typo3 page. If I visit the typo3 page with Google Chrome it is not ...
user avatar
  • 23
0 votes
0 answers
17 views

How to add data behind a login via iframe

so I'm working on on a WordPress site, but I want to pull a graph from another site. However, I need to be logged into the website in order to view the graphs/data. I'm very new to web development; ...
user avatar
1 vote
1 answer
51 views

metabox wordpress show in frontend

Hello I have a metabox field called name this returns an iframe that I have placed but it returns all the code of the iframe and it was not executed. What is missing in my code to show it in the ...
user avatar
  • 37
0 votes
0 answers
2k views

WP Refused to display 'URL' in a frame because it set 'X-Frame-Options' to 'sameorigin'

I'm a beginner to WP development, I'm editing a plugin to add third-party payment gateway when i did the same code in normal php files i didn't had any error and it worked yet in WP cURL didn't follow ...
user avatar
0 votes
1 answer
273 views

Can't Listen to KeyDown in TInyMCE Iframe (jQuery) and Pass it to Parent HTML FORM

I am trying to build an HTML form with TinyMCE textarea such that on Clicking Ctrl+S, it submits the form, by clicking the SUBMIT buton of form. I am using jQuery, here is the KeyDown jQuery(...
user avatar
0 votes
1 answer
406 views

Disable automatic embed links

Is there a way on current wordpress versions (5.2..), to turn of the automatic embed links(wp-embed.min.js), that will turn an url into an iframe? I have tried plugins, snippets, functions.php ... it ...
user avatar
3 votes
0 answers
5k views

How to fix samesite attribute in wordpress for chrome errors?

I have several wordpress sites that run on a rhel7 box that I admin. All of the sites use a custom SSO plugin that I wrote. Today I was told that other sites were having issues accessing one of ...
user avatar
  • 561
0 votes
1 answer
2k views

How to change src to data-src for iframe inside WP content?

I need to change src to data-src for iframes inside Wordpress content and add class lazy. I was trying this: function iframe_image_lazy_load($the_content) { $thecontent = get_the_content(); ...
user avatar
  • 141
1 vote
2 answers
688 views

How to save iframe tag into a post?

I've noticed that when I embed an iframe into a post then save the update, the iframe will not be saved. It seems to be a security feature, but how can I embed the iframe anyway? and set it to accept ...
user avatar
  • 131
0 votes
0 answers
56 views

How to use wp_filter_oembed_result?

I have a video iframe it's can be youtube , vimeo etc $iframe = get_field($field, $id); if(empty($iframe)){ return; } preg_match('/...
user avatar
0 votes
0 answers
75 views

How do I keep my iframes responsive and scaled to fit their container?

This is a WordPress core question and only a CSS question as a byproduct. I am designing a theme using bootstrap. Everything looks exactly as I want it to with one exception - links embedded from my ...
user avatar
1 vote
0 answers
50 views

Cannot add iframe in a blocktext

I want to add an iframe in a block text on the Text tab as follows : But when I apply the updates the iframe disappears, it's like I have never added this part of code : <iframe src="xxxx" width=...
user avatar
0 votes
2 answers
2k views

iFrames when using custom shortcode, ACF and Elementor only renders alternate ones

This is a rather specific and weird issue that is really bothering me now. Here's the setup. - I'm using Elementor Pro and I've created a single page template. - I have four shortcode widgets on ...
user avatar
  • 103
-1 votes
1 answer
99 views

IFrame Shortcode plugin - issue

[iframe src="https://www.quora.com/" data-no-lazy="1"] Hey guys I'm trying to add external webpage to wordpress. I'm using "Flyn San" plugin for that but its not working properly. I have attached the ...
user avatar
  • 1
5 votes
2 answers
4k views

Wordpress Gutenberg Embed Blocks Are Not Responsive

I'm building a custom theme for a client's website and want to allow them to use embedded content in their posts (Youtube videos, Facebook posts, Twitter feeds, etc.) Typically, I've taken to severely ...
user avatar
0 votes
0 answers
37 views

Using an iframe for a form help

I need to add an html form to my homepage so I have added an iframe using raw html. Everything works correctly on the desktop but when I try to use it on mobile it gets messed up. Instead of our ...
user avatar
  • 1
1 vote
1 answer
534 views

VB.net and WordPress

I run a WordPress website that often has posts with some JavaScript, usually for various calculators. For example, I might use JavaScript to allow a visitor to convert inches to mm. That's a basic ...
user avatar
1 vote
2 answers
9k views

External content won't load in iframe in Safari

I'm trying to load external content into an iframe, & it is working in Chrome & Firefox, but it won't load in Safari. In Safari I get the error message: Refused to display 'my_content' in a ...
user avatar
  • 11
0 votes
1 answer
307 views

Iframe is not working for www.example.com/my-account

Iframe is working fine for www.example.com, But its not working for www.example.com/my-account I followed few tricks, Like: adding these codes: remove_action( 'login_init', '...
user avatar
0 votes
1 answer
718 views

Allow insecure embedded content in a SSL secured website

(After some research I think the straight answer is "no, your SSL secured website won't allow to embed insecure content" but I have to ask just to be 100% that is impossible.) I just activated a SSL ...
user avatar
  • 101
1 vote
1 answer
153 views

Side effects of Script and Iframe in post

I am writing a post on HTML. Afcorse the post will have Codes in it. So for showing results in the post, I am taking help of JSFiddle, by embedding results of the code. JSFiddle gives two methods for ...
user avatar
  • 11
0 votes
1 answer
254 views

Load oEmbed iframe within ajax call

I'm trying to load oembed shortcode loaded via ajax. The problem is that the oembed shortcode seems to work as I have a blockquote instead of the instagram link. However the blockquote is not ...
user avatar
0 votes
2 answers
13k views

How to solve Blocked a frame with origin from accessing a cross origin frame error in wordpress?

I am working on a WordPress website in which there are a lot of wordpress plugins installed. The plugins installed on the wordpress website has the following options: When I click on View details ...
user avatar
  • 57
0 votes
1 answer
279 views

Iframe scrolls to middle of the page on load in Firefox [closed]

I have a website www.negovista.com with an iframe on the middle of the page. In Firefox the page scrolls to the middle of the page when I load the page. Any way to avoid this? Thanks for any ...
user avatar
0 votes
1 answer
719 views

Youtube iframe embed keeps disappearing from page

I am trying to embed a video on my homepage. I add the embed code from YouTube and paste it into a custom html blog on the gutenberg editor. I click update and check my website and the video is there....
user avatar
1 vote
1 answer
4k views

Iframe disappears when author updates page

If a user has an author role and is listed as the author of a page, when they make changes to the page and click update, the changes are made but the iframe that was in the wysiwyg disappears and no ...
user avatar
  • 111
2 votes
1 answer
171 views

How to ensure the visual editor doesn't ruin my iframe?

I have this iframe and JavaScript embedded in a post: <iframe onload="fa_iframeresize.do(this);" src="https://example.com/calc.php?tp=dif&cl=beleggen&h=1&wf=19370&country=NL" ...
user avatar
  • 1,197
0 votes
0 answers
46 views

How to completely prevent WordPress from destroying/modifying my shortcode outputs?

Here I have written a (pretty safe) shortcode for embedding iFrames in WordPress: add_shortcode( 'r2o_iframe', 'r2o_display_iframe' ); function r2o_display_iframe($atts) { ob_start(); $src ...
user avatar
  • 495
0 votes
0 answers
640 views

iFrame onLoad in custom Gutenberg block

I have this code that I am trying to rewrite for Gutenberg block: <script type="text/javascript"> <iframe onload="javascript:resizeIframe(this);" src="/...
user avatar
0 votes
1 answer
178 views

what is the method to echo class attribute inside the i tag? [closed]

I am having line like below and it works fine. echo '<li><a href="' . get_term_link( $term->slug, 'amenities' ) . '"> <i class="fab fa-safari" style="font-size:25px;color:#981111"&...
user avatar
0 votes
0 answers
304 views

Iframe Youtube video doesn't work

I'm currently developping a custom page (a handmade one) for my Wordpress website. This page is used to check the validity of a token, if the token is still up, some videos are shown on the page ...
user avatar
  • 101
0 votes
1 answer
117 views

How to get around iframes with WordPress?

I'm working in WordPres 4.9.5. I have some projects that involve data from a third party application called Wrike. The easiest way for me to display the data is through an iframe. I'm placing the ...
user avatar
  • 708
0 votes
1 answer
115 views

Bootstrap theme embedded iframes are distorted [closed]

I'm trying to embed videos onto a page, but they are displaying all stretched out. Here's what it should look like, and this is what it currently looks like. Here's my embed code: <iframe width="...
user avatar
-2 votes
2 answers
276 views

iframe not showing on frontend when using a CMB2 field

I have a custom field manually coded using CMB2: https://cmb2.io/. Here is the code: $cmb_pages_customtext->add_field( array( 'name' => esc_html__( 'Content', 'defaulttheme' ), ...
user avatar
  • 105