Skip to main content

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.

44 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
6k 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 ...
STing's user avatar
  • 591
2 votes
2 answers
1k views

wp_insert_post iframe missing

In my install, I use one custom page. Here I put one text field and the fck editor. This is for the title and the content. I need to insert this into a page. I use the following code $my_post = ...
marsweb's user avatar
  • 71
1 vote
0 answers
285 views

What purpose does /embed/ URL have and how to avoid SEO problems?

I've noticed this with many WordPress projects (and clients) over the years so I thought it was worth a public thread. When you interlink a post/page that has embedding enabled, the iframe source will ...
Jesse Nickles's user avatar
1 vote
0 answers
96 views

How can I create iframe/embeddable content from my WordPress site?

I have a Google map on my site that I use to plot out various points of interest as it relates back to my blog. I have had a few people suggest to me to create an embeddable version of the map so they ...
zeropsi's user avatar
  • 101
1 vote
0 answers
432 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 ...
quikina's user avatar
  • 23
1 vote
0 answers
61 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=...
zakaria mouqcit's user avatar
1 vote
1 answer
216 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 ...
nitasot's user avatar
  • 11
1 vote
0 answers
1k 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-...
user3622260's user avatar
1 vote
0 answers
101 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 ...
Ben H's user avatar
  • 363
1 vote
0 answers
703 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; ...
Junior Mayhe's user avatar
0 votes
1 answer
76 views

Including plain text URL to post on same site is converting the URL to an embed

If I paste a plain text link (non-hyperlinked) to a post on the same site (using Classic Editor) it converts the post's URL to an iFrame embed. For example if my site is https://mysite.local and the ...
Gavin's user avatar
  • 404
0 votes
1 answer
1k views

Injecting CSS into Iframe

I have added an iframe to my website. Within the I-Frame is an area which is not required and I would like to hide. I have tried to inject CSS into the i-frame using Functions.php add_action( '...
PaulMcF87's user avatar
  • 131
0 votes
1 answer
26 views

iframe works for one C-Panel folder but not another

I have successfully embeded an iframe in Wordpress (via Elementor) that displays a Unity3D game. The game is located in c-panel > file manager at: https://wordpress-staging.zafflower.com/...
Zaffer's user avatar
  • 1
0 votes
0 answers
338 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: ...
mike's user avatar
  • 113
0 votes
0 answers
145 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-...
Mady M's user avatar
  • 1
0 votes
1 answer
394 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 ...
topherbb's user avatar
0 votes
0 answers
51 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 ...
Gary's user avatar
  • 1
0 votes
0 answers
50 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"...
jvchappy's user avatar
0 votes
0 answers
36 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 ...
peroyomas's user avatar
  • 329
0 votes
0 answers
154 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 ...
Ocean Knight's user avatar
0 votes
0 answers
308 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). ...
Rok Palčič's user avatar
0 votes
1 answer
20 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 ...
Sergey Pervushin's user avatar
0 votes
0 answers
65 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 ...
Rowan Richards's user avatar
0 votes
0 answers
54 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; ...
Jerome Ariola's user avatar
0 votes
1 answer
457 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
561 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 ...
Fernando Souza's user avatar
0 votes
0 answers
112 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
119 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 ...
Matthew Brown aka Lord Matt's user avatar
0 votes
0 answers
61 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 ...
Nicole's user avatar
  • 1
0 votes
1 answer
352 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', '...
Tazminur's user avatar
0 votes
1 answer
296 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 ...
leopold_pepichoc's user avatar
0 votes
2 answers
15k 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 ...
john's user avatar
  • 57
0 votes
1 answer
898 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....
lomomeg's user avatar
0 votes
0 answers
52 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 ...
Blackbam's user avatar
  • 545
0 votes
0 answers
838 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="/...
ivanacorovic's user avatar
0 votes
0 answers
357 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 ...
Panchoa's user avatar
  • 101
0 votes
0 answers
201 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 ...
inputforcolor's user avatar
0 votes
0 answers
83 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 ...
krishna's user avatar
  • 101
0 votes
1 answer
545 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('...
JoaMika's user avatar
  • 678
0 votes
0 answers
381 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 ...
Aley's user avatar
  • 361
0 votes
0 answers
134 views

Issue with iframe in TinyMCE

How does TinyMCE generate an iframe in the WordPress admin panel? Actually, I could not find out the starting point of the iframe which is generated by TinyMCE.
Foysal's user avatar
  • 449
0 votes
0 answers
182 views

Export to WXR for pages containing script and iframe tags

I've noticed that when importing content from a WordPress site which has tags embedded in the page content, the operation seems to have stripped out all <script> and <iframe> tags. I ...
codecowboy's user avatar
  • 1,768
0 votes
0 answers
259 views

iframe not being displayed in a widget

I'm trying to write my first widget, so i'm not that expert with the code. I have the following code in my functions.php but the iframe is not being displayed: class account_internet extends ...
Mariano's user avatar
  • 137
-1 votes
1 answer
157 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 ...
Danish's user avatar
  • 1