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.
105
questions
2
votes
2answers
52 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
13 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
17 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
21 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
125 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
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; ...
1
vote
1answer
19 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
625 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
19 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
87 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
99 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 ...
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 ...
0
votes
1answer
771 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();
...
0
votes
0answers
195 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')...
1
vote
2answers
245 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
36 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 ...
1
vote
0answers
28 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
789 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
75 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
3k 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
357 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
6k 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
273 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
330 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
80 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
208 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
9k 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
218 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
461 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
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 ...
2
votes
1answer
118 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
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
485 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
136 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
223 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
98 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
101 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
173 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
99 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
63 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
459 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
4k 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
37 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
447 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('...
1
vote
1answer
900 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
155 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
79 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-...