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.
38
questions with no upvoted or accepted answers
2
votes
0answers
4k 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 ...
2
votes
1answer
698 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 = ...
1
vote
0answers
158 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 ...
1
vote
0answers
29 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=...
1
vote
1answer
88 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 ...
1
vote
1answer
2k 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 ...
1
vote
0answers
950 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
0answers
92 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 ...
1
vote
0answers
576 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
11 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 ...
0
votes
0answers
14 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
18 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
26 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 ...
0
votes
0answers
14 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; ...
0
votes
0answers
774 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
0answers
20 views
Use url in Thickbox without iframe?
I'm using Thickbox with the following code:
function fnctn_add_thickbox () {
add_thickbox();
}
add_action ( 'wp_enqueue_scripts','fnctn_add_thickbox' );
The problem is that to use the Thickbox I'...
0
votes
0answers
17 views
Embed code ā height of iframe is too less
I need help with a piece of HTML embed code..
My website is https://keerthiseasydish.in
In the home page, i need to flash the latest youtube video of a channel. I am doing it with the following code (&...
0
votes
1answer
120 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
137 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 ...
0
votes
0answers
37 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
66 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 ...
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 ...
0
votes
1answer
275 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
373 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 ...
0
votes
1answer
214 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
10k 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
489 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
0answers
42 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
497 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
0answers
235 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
0answers
105 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
0answers
39 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
450 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
0answers
351 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 ...
0
votes
0answers
126 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.
0
votes
0answers
139 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 ...
0
votes
0answers
231 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 ...
-1
votes
1answer
78 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 ...