Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
23 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
21 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
134 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
47 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
0answers
10 views

How to apply X-frame-options in wordpress installed on Google Cloud Platform (GCP)?

I tried applying to the .htaccess file but it still allows me to embed the website on another site. So, where do I apply the X-frame-options in wordpress installed on Google Cloud Platform (GCP)? ...
0
votes
1answer
25 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
56 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
25 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
395 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
0answers
41 views

Gravity forms not working - Uncaught DOMException

Recently the plugin Gravity forms started giving an error in the console when trying to sumbit, which says: jquery.js:2 Uncaught DOMException: Blocked a frame with origin "https://www.abcdef.nl" from ...
0
votes
1answer
26 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
79 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
180 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
97 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
9 views

Redirect page only if it's not loaded in an inframe

I have pages in my site that open in a lightbox popup from the home page. If a user browses directly to those pages, I'd like to redirect them to the home page instead, but that will surely stop ...
0
votes
0answers
28 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
281 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
41 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
71 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
52 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
0answers
37 views

Refreshing asp.net in Wordpress plugin iframe lost login credential (usename and password)

Our company started to use Wordpress this year. I have used ASP.net, and am new to Wordpress. In order to run ASP.net page, we installed a plugin and use this code. [iframe src="abc.com/wp_login....
0
votes
1answer
59 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
97 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
29 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
35 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
193 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
1k 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
32 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
324 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
486 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
95 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
0answers
233 views

refresh loop Wordpress customize theme page

When I open Appearance > Customize the ifram of preview reload non stop without change anything in the page. console just log JQMIGRATE: Migrate is installed, version 1.4.1 that I think it's ...
0
votes
1answer
25 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-...
-2
votes
1answer
2k 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
480 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
77 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
49 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
365 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
38 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
2k 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&...
1
vote
1answer
2k views

Responsive Video Max-width

I found some code that will help video embeds be responsive: http://alxmedia.se/code/2013/10/make-wordpress-default-video-embeds-responsive/ The problem is not the code, the code is working great! ...
4
votes
1answer
416 views

Add post class to the TinyMCE iframe?

I want to add styles to editor-style.css, based on the category the current post belongs to. Therefore I would like to add the post classes - using get_post_class() - to the body of the TinyMCE ...
2
votes
2answers
895 views

Page Reloads Before AJAX Request Finishes

I am working on a WP plugin, and I need to be able to call a URL (specifically an AJAX function) using a button click, but the page refreshes after clicking it, which I think is preventing the AJAX ...
2
votes
1answer
1k views

How do i disable/disallow <script> and <iframe> tags in TinyMCE?

A client of mine has just had 200 posts injected by malicious scripts and iframes. The website is now all cleared. They were put in the content by the user updating the post/page as my clients ...
1
vote
0answers
65 views

WordPress plugin admin html being shown in Customizer iframe

I have a WordPress plugin that is focused soley on the admin side of things. I have a piece of HTML that is shown on all admin pages using the all_admin_notices hook. This worked very well, but I ...
4
votes
1answer
1k views

Refresh wp.media after ajax call

I'm building a plugin where I add a tab to the media manager and can add stuff from another source. I add the tab with this, which generates a iframe: add_filter('media_upload_tabs', '...
3
votes
1answer
93 views

Youtube - Embed as IFRAME

When I embed a YouTube video in the suggest manner (paste url) it adds this as an object. Is there a way to embed as IFRAME instead?
1
vote
0answers
421 views

Does get_the_content_feed strip invalid tags?

My WordPress 4.2.2 generates a post feed with this <content:encoded><![CDATA[ <p> ...some html here... <iframe style="border: 1px solid #CCC; border-width: 1px; margin-bottom: 5px; ...
0
votes
0answers
300 views

Post preview in iframe without saving the post

I aim to make a live preview inside an iframe of the current edit post. The preview should render the post content only. That's why I guess an iframe is actually a good idea. The frontend includes ...
3
votes
2answers
4k views

Remove Header and Footer in iframe

Many people embed my website's pages in their websites as iframes. I want them to not take my footer, header and a specific division in those iframes. Since, footer, header and mentioned specific ...