Skip to main content
6 votes

Wordpress Gutenberg Embed Blocks Are Not Responsive

It may be that your theme hasn't declared support for responsive embeds. Try adding this code to your functions.php // Add support for responsive embedded content. add_theme_support( 'responsive-...
rudtek's user avatar
  • 6,153
5 votes
Accepted

How to get around iframes with WordPress?

That would be more of a question for the makers of Wrike, not WordPress, since it depends on whether or not Wrike has APIs or some other way to access their data. A quick glance at their site reveals ...
WebElaine's user avatar
  • 9,475
4 votes
Accepted

Easy way to inject js in tinymce iframe?

WordPress injects its own external script files in the TinyMCE editor iframe, see for example the wp-includes/js/tinymce/plugins/wpembed/plugin.js file: (function ( tinymce ) { 'use strict'; ...
David Riccitelli's user avatar
3 votes

Wordpress Gutenberg Embed Blocks Are Not Responsive

If you don't already have it, add body_class(); to the themes body tag <body <?php body_class(); ?>>
Reberg's user avatar
  • 31
3 votes

VB.net and WordPress

So I'm wondering if anyone might know how I could use VB.net for my calculators on my Wordpress website. Directly? No, you can't run .Net in a browser, and the closest available is silverlight and ...
Tom J Nowell's user avatar
  • 59.8k
3 votes
Accepted

Set 3 iframes in a row

The problem is that you are using the_excerpt(). This function prints out the excerpt immediately, it doesn't return a string. From the core: /** * Display the post excerpt. * * @since 0.71 */ ...
fuxia's user avatar
  • 107k
3 votes

Prevent other sites from showing my site via iframe

WordPress has a built-in function to send the X-Frame-Options header: send_frame_options_header(). It is used by default on the login and admin pages. If you want to enable it always, just add it for ...
fuxia's user avatar
  • 107k
3 votes
Accepted

Add post class to the TinyMCE iframe?

The filter you're after is tiny_mce_before_init. Using this, we can hook into TinyMCE's 'init_array' and add body classes: add_filter( 'tiny_mce_before_init', 'wpse_235194_tiny_mce_classes' ); ...
Tim Malone's user avatar
  • 4,754
3 votes

Page Reloads Before AJAX Request Finishes

Please do not put this code into production OK. So there are many things wrong with the code that need fixing before we can even begin to answer your question. Firstly we're using $_REQUEST without ...
FaCE's user avatar
  • 534
2 votes

Youtube - Embed as IFRAME

If you don't want to utilize the latest oembed functions and want the old iframe way from any page or post, you can do these: Get the embed code from any youtube video. While editing/creating your ...
Carl Alberto's user avatar
  • 1,097
2 votes
Accepted

Check if page is embeded

The server doesn't know what the client is doing with the output and as such, you're limited in what you can assume. You may or may not have params sent in the request, referer, current uri and ...
jgraup's user avatar
  • 9,784
2 votes
Accepted

How can I get my iFrame to work with url from post_meta?

Almost every time when I post a question, I'm able to find the solution on the internet.. Sorry guys and girls for the spam! Solution <div class="featured-img-blog"> <?php global $...
Stan's user avatar
  • 31
2 votes

Iframe scrolls to middle of the page on load in Firefox

I can see there is onload event written in your iframe to scroll to (0,0). I think if you can change the onload function to return false; or remove that onload="top.scrollTo(0,0)" from iframe may help....
rony2k6's user avatar
  • 146
2 votes

Iframe disappears when author updates page

Note that allowing iframes directly in a post content area can be dangerous, that's why they're stripped out for security reasons. Super admins on multisites or administrators on single sites have the ...
Tom J Nowell's user avatar
  • 59.8k
2 votes
Accepted

How to save iframe tag into a post?

iframes get stripped out for security reasons, you shouldn't be trying to put embed codes directly into post content, there are other methods, such as oembed or shortcodes. If you have the ...
Tom J Nowell's user avatar
  • 59.8k
1 vote

iFrames when using custom shortcode, ACF and Elementor only renders alternate ones

As a work around you can make it work with the Elementor Shortcode Widget and for example this iFrame Shortcode Plugin: https://de.wordpress.org/plugins/iframe/ Then in the Elementor Template you make ...
Mr Sonnentag's user avatar
1 vote
Accepted

iFrames when using custom shortcode, ACF and Elementor only renders alternate ones

The iframes not showing is probably caused by the shortcode parser freaking out by how you pass the parameter to it. I tested your code example / shortcode (added 4 times to the post content) and here'...
Antti Koskinen's user avatar
1 vote
Accepted

External content won't load in iframe in Safari

Someone with much more knowledge about this fixed it for me. I'm posting the answer here in case it can help someone else: We have made some changes and implemented a way to allow [external content] ...
megseoh's user avatar
  • 31
1 vote

Allow insecure embedded content in a SSL secured website

The Question is: Can I setup some kind of SSL exception in WordPress 4.9.8 to permit the linking to an insecure resource...? Extremely unlikely, and in the vast majority of the cases, impossible. The ...
Tom J Nowell's user avatar
  • 59.8k
1 vote
Accepted

How to ensure the visual editor doesn't ruin my iframe?

add_shortcode('custom_iframe_shortcode', 'build_iframe'); function build_iframe($atts) { $defaults = array( 'source' => 'https://example.com/calc.php?tp=dif&cl=beleggen&h=1&...
mrben522's user avatar
  • 1,673
1 vote
Accepted

the_content(); erroneously closing off previous opening before it

the_content() is probably rendering a link ( or maybe your browser may be auto formatting one ). You can test if this is so by instead of using the_content(); using // Get the Content of the post $...
Ideatron's user avatar
  • 109
1 vote
Accepted

The_content and Preg_replace in loaded Iframe

You can't, it's as simple as that. Why Not? First of all, because the DIV is not part of your content. It's either generated by WordPress' filters, or the browser itself. So, you can't do ...
Johansson's user avatar
  • 15.3k
1 vote

How to display javascript banner in website header?

It's there and visible in Incognito mode, it's being blocked by one of the adBlocker extension that you might be using in your browser. The best workaround would be is to change the class from headad ...
Kumar's user avatar
  • 2,869
1 vote

Allow iframes from specific sites?

I'd register an embed handler with wp_embed_register_handler. This gives you the added benefit of being able to just copy and paste the url into the editor as well as seeing a preview of the iframe. ...
Dylan's user avatar
  • 549
1 vote
Accepted

My redirect URL doesn't show any pages on my website

You're doing the whole thing in a wrong way. First of all you should not redirect the domain to ftp server url. You should point your domain using A record or Nameservers. Whatever option you have/...
Abdul Awal Uzzal's user avatar
1 vote

Dynamic URL and pass the data to an iframe

Step 1: Create a page with slug 'profile' in your WordPress Dashboard. Step 2 Use this function to register profileId var. add_filter('query_vars', 'wp233_query_vars'); function wp233_query_vars( $...
Ahmed Fouad's user avatar
  • 1,353
1 vote
Accepted

Responsive Video Max-width

So, apparently, I needed to read a little bit more before I posted my question. After I posted the question, I ran across: https://moodle.org/mod/forum/discuss.php?d=258650, which is what I ...
Josh Rodgers's user avatar
  • 1,173
1 vote

Adding iframe Content to Sidebar Widget

To update the answer in question, as of WP 4.8 site that I have tested, the regular text widget can now natively display iframes by simply using the regular iframe tag: <iframe src="https://...
Carl Alberto's user avatar
  • 1,097
1 vote

Make WordPress WYSIWYG not strip out iframe's

In multisite environment every user other than superadmin get html filtering (because potential security vulnerabilities). Based on this you can add Add unfiltered_html Capability to editors. /** * ...
docker's user avatar
  • 159

Only top scored, non community-wiki answers of a minimum length are eligible