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
0answers
24 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 ...
0
votes
1answer
45 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 ...
0
votes
0answers
24 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 ...
0
votes
0answers
23 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). ...
0
votes
1answer
16 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 ...
0
votes
0answers
34 views

Trying to add current user meta data to a shortcode and display an iframe on Wordpress

I created some custom user meta fields, which I can call normally and display the info added but when I'm trying to pass this meta value on to an iframe to dynamically generate an iframe based on ...
2
votes
2answers
954 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 ...
0
votes
0answers
27 views

Unable to embed wordpress blog to other website

What I am basically trying to do is embed a blog website on the main website as iframe. I am the one who is responsible for the blog website which is running on Wordpress. The main website is being ...
0
votes
0answers
25 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 ...
0
votes
0answers
39 views

How to Disable sameorigin from a bitnami + WordPress + NGINX stack

I need to disable SAMEORIGIN x-frame feature, https://take.ms/ZDL042 how can I achieve this? I read that if I add Header always unset X-Frame-Options to my .htaccess it would prevent the header, but i ...
1
vote
0answers
250 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 ...
0
votes
0answers
16 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; ...
1
vote
1answer
25 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 ...
0
votes
0answers
1k 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 ...
0
votes
1answer
182 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(...
0
votes
1answer
282 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 ...
3
votes
0answers
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 ...
0
votes
1answer
1k 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(); ...
1
vote
2answers
428 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 ...
0
votes
0answers
42 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('/...
0
votes
0answers
68 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 ...
1
vote
0answers
40 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=...
0
votes
2answers
1k 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 ...
-1
votes
1answer
89 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 ...
5
votes
2answers
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 ...
0
votes
0answers
29 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 ...
1
vote
1answer
459 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 ...
1
vote
2answers
7k 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 ...
0
votes
1answer
289 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', '...
0
votes
1answer
502 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 ...
1
vote
1answer
107 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 ...
0
votes
1answer
227 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 ...
0
votes
2answers
12k 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 ...
0
votes
1answer
246 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 ...
0
votes
1answer
598 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....
1
vote
1answer
3k 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 ...
2
votes
1answer
128 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" ...
0
votes
0answers
43 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 ...
0
votes
0answers
547 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="/...
0
votes
1answer
151 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"&...
0
votes
0answers
282 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 ...
0
votes
1answer
106 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 ...
0
votes
1answer
109 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="...
-2
votes
2answers
226 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' ), ...
0
votes
0answers
112 views

load a wordpress page into another wordpress page using iframe

I've looked around in StackExchange & elsewhere before asking my question directly: I have created a Wordpress custom template which users can add job-vacancy posts to. I want to display these ...
0
votes
1answer
74 views

the_content(); erroneously closing off previous opening before it

I have a custom loop that is displaying a "most popular" posts section. It first creates a linked container (<a href="<?php the_permalink(); ?>"> ... </a>), and then stores data from ...
0
votes
1answer
527 views

The_content and Preg_replace in loaded Iframe [closed]

The Problem: I try delete the tag generates by a iframe after is loaded. The iframe is for load a video but then it loads some tags like this <div role="contentinfo" class="dmp_VideoInfo dmp_is-...
0
votes
3answers
5k views

How to display javascript banner in website header?

I recently purchased a theme which includes the option to display a banner in the header. The banner can be displayed using either a static image or javascript. The particular javascript code I'm ...
0
votes
0answers
41 views

How to add plugin css and js to iframe

I am developing a plugin for chatbox(like Facebook) for site users. I am displaying users in right corner.if I click on user I am displaying omini chat window in iframe. But I am unable to get plugin ...
0
votes
1answer
462 views

Wordpress Mediaelement - Youtube Videos Embed Options

I have a custom field where I define the Youtube Url as a string. https://www.youtube.com/watch?v=3VqHtEF3LPE This then becomes the src in my theme's shortcode: <?php $ysrc = get_field('...