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
-1
votes
1answer
4k 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
809 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
97 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
59 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
949 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
73 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
3k 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
536 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 ...
1
vote
2answers
2k 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
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 ...
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 ...
4
votes
1answer
2k 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
104 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
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
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 ...
3
votes
2answers
6k 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 ...
0
votes
1answer
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 ...
4
votes
2answers
7k 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 ...
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.
10
votes
1answer
715 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: ...
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
1answer
684 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 ...
1
vote
1answer
806 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 ...
0
votes
3answers
2k 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 ...
0
votes
1answer
702 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 ...
2
votes
1answer
697 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
1answer
4k 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 ...
0
votes
0answers
230 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 ...
3
votes
1answer
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-...
1
vote
1answer
209 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 ...
2
votes
1answer
317 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?
1
vote
3answers
367 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> ...
3
votes
4answers
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 ...
1
vote
1answer
712 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 ...
5
votes
3answers
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 ...
1
vote
1answer
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.
1
vote
1answer
2k views

How to filter out an iframe from feed

There is some iframe inside post content and I want to get rid of that iframe when the rss feeds are generated. To generate rss feeds, I'm showing full post content. I started looking at strip_tags() ...
1
vote
1answer
2k views

How to Add Custom CSS to the Media Thickbox?

I've added a couple of custom fields to the Edit Media screen, but when these are displayed in the WP Media Thickbox (when adding images from the Edit Post screen, for example), the styling is gone. ...
2
votes
1answer
1k views

Allow all attributes in $allowedposttags tags

I would like to use $allowedposttags to allow extra HTML tags during entry submission. Can I allow all attributes for a specific tag using $allowedposttags? For example, the code below will allow ...
3
votes
1answer
2k views

Error with Custom Admin Screen in iframe Thickbox

I have a plugin that adds a new admin screen in an iframe. I created a PHP file in my plugin, and I put a link with a class of Thickbox to that. Everything works just fine, but it produces a PHP error ...
5
votes
2answers
5k views

When switching from html to visual editor the <iframe> tag gets corrupted

I'm trying to embed an iFrame, and because I set up some CSS using responsive design, I wish to NOT have width="" and height="" attributes whatsoever. When I type this into the HTML editor field.. &...
2
votes
2answers
3k views

Easy way to inject js in tinymce iframe?

I was wondering if there is any direct hook to inject some javascript into tinymce iframe?
2
votes
1answer
797 views

Access tinymce from thickbox

Basically, I have a custom tinymce button which opens a thickbox window in iframe mode. Is there a way to access the tinymce from the iframe? Wordpress media uploader seems to do it somehow. Stuff ...
3
votes
4answers
8k views

How to add editor-style.css styling to wp_editor on front end for comments

How can I apply my own css (to match editor-style.css) to wp_editor being used on the front end for comments? Currently I'm using code from here to enable the visual editor for comments. My actual ...
-1
votes
1answer
1k views

WordPress wp_nav_menu within iFrame

EDIT 2: How would I iFrame wp_nav_menu contents while maintaining the styles and script associated with their display? (Please ignore all of the below seemingly confusing context of why someone would ...
3
votes
2answers
4k views

how can i embed wordpress backend in iframe

I have 2 websites http://www.aaa.com and http://www.bbb.com and need them to show the same. Now I put an iframe in index.html and upload to aaa.com. It's ok for frontend but it's doesn't work for ...
4
votes
2answers
2k views

Is there a hook to put stylesheet and/or JS inside iframes (thickbox or tinyMCE) in admin area

I'm working on my admin area theme and I wanted to make some modifications on the way the thickbox and tinyMCE looks. I could make most of the changes through adding custom stylesheets and JS to my ...
2
votes
1answer
954 views

How to hook into wordpress admin upload iframe?

I have written a plugin which lets the user upload file attachments for using WordPress as a download site. So I have added a meta box which shows the user the files he has uploaded for every post. ...
2
votes
2answers
5k views

Embed Wordpress Admin in an iframe

I am trying to embed the admin "new post" WordPress page into an iframe: <iframe height="500px" frameborder="0" width="740px" src="my_wordpress_domain/wp-admin/post-new.php"/> For some reason ...