A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
8 views

Customizing the oEmbed field to loop and disable up next queue for dailymotion video

Hey I am using cpt and ACF. I have an oEmbed field in which I want to loop video and disable relate video (up next queue for dailymotion )for which I have this code ---- `?php the_field('video_embedd')...
0
votes
0answers
28 views

How to trigger different behavior in iFrame

I have a website in our company network from which I integrate content to other sites in our network via iframe. The source page can only be accessed with Login via SSO. However, I want to see that on ...
0
votes
0answers
22 views

iframe token flow for SSO OAUTH2

I run a Wordpress site (page A), locally in the company network. A login is required on the site. Our Company SSO via OIDC / OAUTH2 is implemented and working. The intranet also works with our ...
1
vote
2answers
26 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
16 views

HOW to embed gdrive folder ON wordpress website using iframe?

Currently when I CLICK IFRAME PAGE Content LOAD IN different WINDOW ......right now it works like https://web1expert.com/all-portfolio/ where i want embedded content should load inside iframe i want ...
0
votes
0answers
24 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
61 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
12 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
1answer
115 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 ...
0
votes
0answers
27 views

Escape special characters in shortcode

I need to use Iframe fuction in wordpress tab widget. I want to put iframe src code in it < iframe src="http://externalpage/"> My external page is this one..(it has short codes in it) https://...
0
votes
0answers
27 views

How to add IFrame code to a WordPress page? [duplicate]

I'm looking to run a competition on Gleam, and they have given me an IFrame code so that I can mirror that Gleam page on my WordPress site. So the thing is, when I enter the code on my Wordpress page, ...
0
votes
0answers
11 views

How to embed an admin/plugin settings page in a post for frontend users?

I would want to embed certain admin pages on a frontend page so users can manage setting without going to wp-admin. Also, I would want to strip the sidebar when I embed admin pages in an iframe on a ...
0
votes
0answers
36 views

WordPress Multisite query parameters

Am currently having an issue with the redirection of query parameters on a multisite. I have embedded an Angular App inside an iframe and have a script to assign the query parameters of the app to the ...
-1
votes
1answer
41 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 ...
4
votes
2answers
1k 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
28 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
126 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
2k 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
236 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
70 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
64 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
86 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
2k 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
121 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
192 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....
0
votes
1answer
921 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
106 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
37 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
399 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
77 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
109 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
79 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
82 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
133 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
43 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
47 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
346 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
2k 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
34 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
396 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('...
0
votes
1answer
671 views

Allow iframes from specific sites?

With kses filtering, WordPress only allows a subset of html tags within a post or page, and one of the tags it strips out is the <iframe> tag (for many good reasons). I'd like to allow ...
0
votes
1answer
121 views

Set 3 iframes in a row

SCENARIO: I inherited a WordPress site that uses the Thesis theme. I have Content Blocks installed, which I use to populate the right sidebar. I have a function that randomly picks up three post ...
0
votes
1answer
55 views

Is it possible to embedd this web app to my website [duplicate]

I am trying to embedd this website into my own website I have tried so using Iframe but the page is just blank. The link I want to embedd is - https://www.zillow.com/homedetails/1-Anchorage-Way-APT-...
-1
votes
1answer
3k views

Prevent other sites from showing my site via iframe

Right now, anyone can display my website with an <iframe> tag. See example: <iframe src="http://example.com/" width="1000" height="1800" frameborder="0" scrolling="no"></iframe> ...
1
vote
1answer
648 views

How can I get my iFrame to work with url from post_meta?

I've made a custom meta box for adding an URL to the post, which can be displayed later on the frontend page. This url is inserted in my database correctly. Then I'm getting the url in my code by: &...
0
votes
1answer
88 views

My redirect URL doesn't show any pages on my website [closed]

I recently started using Wordpress. To do so I installed wordpress on my FTP server. Everything is working perfectly fine so far, except for my page URL. My FTP server's URL is really complicated so ...
0
votes
1answer
53 views

Experts opinions needed: How (in)secure is this approach?

My server has both, wordpress and a webmail client installed. Wordpress is accessible through: _http://a-totally-awesome-domain.com/ Webmail is accessible through: _http://a-totally-awesome-domain....
1
vote
0answers
502 views

iframe does not store session/cookie when refresh parent

I have been searching around but there was no specific answer or any indication about the problem I am facing. I have a domain, parent.com, which is just a full screen container of a WordPress-...
1
vote
1answer
42 views

Check if page is embeded

I'm trying to make condition that checks if the page is embeded with iFrame, but all the ways I know won't work. I'm embeding Woocommerce single product page, on custom template where only necessary ...
0
votes
2answers
3k views

Dynamic URL and pass the data to an iframe

I have a WordPress marketing site (www.example.com) and a backend app site (app.example.com). What I am trying to do is this: if some body goes to the URL: www.example.com/profile/<<profileId&...