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.

Filter by
Sorted by
Tagged with
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
1 answer
169 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 ...
klewis's user avatar
  • 857
0 votes
1 answer
142 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="...
Camille Roney's user avatar
-2 votes
2 answers
399 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' ), ...
mdailey77's user avatar
  • 105
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
1 answer
119 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 ...
coffeebot's user avatar
  • 125
0 votes
1 answer
765 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-...
Milor123's user avatar
  • 103
0 votes
3 answers
7k 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 ...
jrcollins's user avatar
  • 571
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
1 vote
1 answer
2k 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 ...
joetek's user avatar
  • 323
0 votes
1 answer
306 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 ...
Nora McDougall-Collins's user avatar
0 votes
1 answer
180 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-...
el mashrafi's user avatar
0 votes
1 answer
6k 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> ...
Shay S's user avatar
  • 69
1 vote
1 answer
981 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: &...
Stan's user avatar
  • 31
0 votes
1 answer
103 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 ...
Peter's user avatar
  • 3
0 votes
1 answer
70 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....
SePröbläm's user avatar
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
1 answer
183 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 ...
Rafal's user avatar
  • 312
0 votes
2 answers
5k 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&...
SNAG's user avatar
  • 101
1 vote
1 answer
3k 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! ...
Josh Rodgers's user avatar
  • 1,173
4 votes
1 answer
731 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 ...
Lea Cohen's user avatar
  • 1,640
1 vote
2 answers
3k 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 ...
K.Briggs's user avatar
2 votes
1 answer
2k 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 ...
Mikkel Tschentscher'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
4 votes
1 answer
3k 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', '...
gubbfett's user avatar
  • 315
3 votes
1 answer
140 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?
Louis W's user avatar
  • 454
1 vote
0 answers
702 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
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
3 votes
2 answers
8k 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 ...
Lee Braham's user avatar
0 votes
1 answer
3k views

How to insert HTML/CSS/JS into my iframe plugin?

I currently have an iframe plugin that displays on a WordPress page by shortcode. Currently I have been displaying websites in my iframes "src" but I recently came across an issue to display my very ...
LinDan ChongWei's user avatar
4 votes
2 answers
9k views

Give Author users the right to embed

I'm trying to allow "author" users to embed in posts. I (the administrator) can iframe, embed, etc...., but authors can not. Can someone show me to give authors 'just' the ability to embed and ...
Mr. B's user avatar
  • 307
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
10 votes
2 answers
896 views

How to get SimplePie fetch_feed without stripping iframe code?

I'm grabbing a remote feed in my plugin and some entries have iframe code I want to keep. However, SimplePie fetch_feed keeps stripping it out. Here is my code and what I've tried already: ...
johnh10's user avatar
  • 679
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
1 answer
904 views

Designing a plugin that uses an iFrame to process data in admin

I am working on a plugin to import content from a database into WordPress. What I am trying to do is have the processing done in an iframe so the output is displayed to the user like the plugins ...
Jeremy's user avatar
  • 450
1 vote
1 answer
819 views

echo same menu items across multi-site platform

I am trying to echo main theme's menu items across the headers of other sites in a WP multi-site environment and was wondering what is the proper way of doing this. I tried iframe which works but ...
Dave_O's user avatar
  • 55
0 votes
3 answers
3k views

Allow iframe in custom meta box

I've created a custom meta box called 'Location Map' and want to provide a functionality to the client to simply copy paste the location's google map's iframe embed code so that it directly appears on ...
nimsrules's user avatar
  • 208
0 votes
1 answer
1k views

Can Username and Password be passed to WP Login page in an IFrame?

I am using a real estate commercial theme, that uses a custom login/registration from on the frontend. The admin panel and option pages are restricted to Administrators, but if the theme is ...
Thunder's user avatar
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
2 votes
1 answer
5k views

Custom Login iframe doesn't work

I have a custom login window that I am building. The client requires a modal window for the login, so I have to use HTTP (for performance) for the regular page, and HTTPS for the login window (in the ...
michaelrmcneill's user avatar
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
3 votes
1 answer
3k views

Load post content into iframe

I would like to load a WordPress post into an iframe when a link on a WordPress page is clicked. This is the link I currently have. <a href="' . get_post_permalink($sight->ID) . '" target="map-...
user1681447's user avatar
1 vote
1 answer
258 views

Iframe a WordPress template

I am trying to iframe a template in WP e.g. <p><a class='iframe' href="<?php bloginfo('template_directory'); ?>/training-form.php">Book Now</a></p> This gives me a ...
Gareth Gillman's user avatar
2 votes
1 answer
347 views

Resize the WP media Uploader iFrame

I'm trying to customize the look of the iframe that pops up (media uploader). I've manage to remove some fields etc, but I cannot re-size the frame. Does anybody know how to do this?
RICKY DAWN's user avatar
1 vote
3 answers
465 views

Embed Post in external page

I want to create a page that can be embedded in other sites with an embed script like this: <iframe src="http://www.example.com/the_hidden_page?setting=set1&setting2=set2"></iframe> ...
Lee Loftiss's user avatar
3 votes
4 answers
2k views

WP Cron doesn't save <iframe> or <object> in post body

I am using wp_cron to auto grab posts from a remote website and save them in my wp db. NOTICE! I am executing my code from my plugin, not from my template functions.php or somewhere else. I have my ...
Derfder's user avatar
  • 2,052
1 vote
1 answer
812 views

get_the_category_list open in parent window

I'm opening my posts in an iframe, and I'm using get_the_category_list to list post's categories. The problem is that when a user clicks on the category link, it opens in the iframe. How can I set the ...
Red's user avatar
  • 423
5 votes
3 answers
1k views

Make fonts.com font work in TinyMCE (iframe referrer issue)

I'm using custom (commercial) fonts in my project. Everything works well in the frontend. I noticed however that, when trying to add this font to the TinyMCE iframe, I get a 403 for the webfonts. The ...
Aron Woost's user avatar
1 vote
1 answer
7k views

Allow editors to post iframes [duplicate]

I just found out that editors are not allowed to post iframes (e.g. YouTube videos). Is it possible to allow it somehow? I use WP Multisite.
user1706680's user avatar