Side effects of Script and Iframe in post

The recommended method for embedding iframes is using the <iframe> tag. It makes for better syntax and also allows you to control the iframe much better. For example, you are able to remove an iframe’s border, control scrolling options, etc. <iframe src=”https://jsfiddle.net/o7usdL0a/embed/result/” style=”width: 100%; height: 300px” scrolling=”no” marginwidth=”0″ marginheight=”0″ frameborder=”0″> </iframe> The <script async> and … Read more

External content won’t load in iframe in Safari

X-Frame-Options: sameorigin By itself (and in older browsers) this would certainly deny access. However, in compliant browsers you would expect the Content-Security-Policy: header to override this. Assuming you have control over this external content, have you tried setting this header to: X-Frame-Options: allow-from https://example.com Or X-Frame-Options: sameorigin, allow-from https://example.com (Although Safari may not support the … Read more

How to Add Custom CSS to the Media Thickbox?

In WordPress 3.5, this hook works for me: add_action( ‘print_media_templates’, ‘wpse_75746_print_style_35’ ); function wpse_75746_print_style_35() { ?> <style> .media-modal-content, .media-sidebar { background: #FFF2D4 !important; } </style> <?php } In 3.4.2, this is the one: add_action( ‘admin_print_styles-media-upload-popup’, ‘wpse_75746_print_style_342’ ); function wpse_75746_print_style_342() { ?> <style> #media-upload { background: #FFF2D4 !important; } </style> <?php }

How to filter out an iframe from feed

One potential option is to use preg_replace to do a regex match on your content and replace the iframe with empty space. So this function: function rss_noiframe($content) { $content = preg_replace( ‘/<iframe(.*)\/iframe>/is’, ”, $content ); return $content; } add_filter(‘the_excerpt_rss’, ‘rss_noiframe’); add_filter(‘the_content_feed’, ‘rss_noiframe’); Should automatically convert any instances of <iframe src=…>…</iframe> to a blank.

Allow editors to post iframes [duplicate]

try the iframe shortcode plugin http://wordpress.org/extend/plugins/iframe/ Embed iframe using shortcode [iframe src=”http://player.vimeo.com/video/819138″ width=”100%” height=”480″] ps: you can also use the default oembed shortcode: it supports YouTube, Vimeo, DailyMotion, Flickr, Twitter, … and more. Example: Screenshot: See more here: http://codex.wordpress.org/Embeds

get_the_category_list open in parent window

get_the_category_list runs it output through the filter the_category. You could hook in there and change whatever you like. Something like this should work (untested): <?php add_filter(‘the_category’, ‘wpse90955_the_category’); function wpse90955_the_category($cat_list) { return str_ireplace(‘<a’, ‘<a target=”_parent”‘, $cat_list); } If you just need to have that list filter in certain spots, you can define the function above in … Read more

Iframe a WordPress template

Well, it can’t and won’t work. You should think how iframe really works. All it does is send a request to server with given URL (src parameter) and display response. Why inserting <?php bloginfo(‘template_directory’); ?>/training-form.php as src wouldn’t work? Just go to this address and see, what you’ll get. Nothing or some trash. Why? Because … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)