Which HTTP headers to use for subdomain embedding?

I was able to figure out that because Lightsail uses a Bitnami deployment of WordPress, Bitnami overrides the .htaccess file. Instead you have to update the /opt/bitnami/apache2/conf/httpd.conf file by adding the following content: <IfModule headers_module> <IfVersion >= 2.4.7 > Header always setifempty X-Frame-Options ALLOW-FROM https://*.example.com </IfVersion> <IfVersion < 2.4.7 > Header always merge X-Frame-Options ALLOW-FROM … Read more

How to create a static player top or bottom of wordpress?

Child theme for TwentyEleven: create the child theme folder, twentyhalf create a style.css file with the content: /* Theme Name: Framed Audio Theme URI: http://wordpress.stackexchange.com/questions/69624 Version: 1.0 Description: Index page with framed content – one frame points to a parent page with the slug of ‘sample-page’ and the other for a folder at the root … Read more

How to center a video [closed]

To center an element, you will also have to style it’s parent element too. So let’s say, you video has a structure like this: <div class=”parent-class”> <video class=”wp-video”> </video> </div> To center the video, you will have to give it’s parent a width. Using: .parent-class{ width:100%; display:block; } Now, you can use this to do … Read more

wp_embed_register_handler to embed html files

Fixing the regex pattern To match an url of the type: https://coptic-treasures.com/ {Some string with a mix of a-z letters and hyphen}/{Some number}.html like this example: https://coptic-treasures.com/html-test-filed/02.html you can try this kind of pattern: ‘#https://coptic-treasures.com/([a-z-]+)/([0-9]+)\.html$#i’ and then you have to update the iframe output accordingly: … src=”https://coptic-treasures.com/%1$s/%2$s.html” … with the corresponding matches. Demo Here’s a … Read more

Convert WordPress.com embed links to normal embeds

you could use phpMyAdmin to do a search&replace on the wordpress database for the old youtube embed string and then replace with the new one. Should be possible since the syntax is similar enough. edit: to add from this other stackexchange question: Search RegEx is a good plugin to be able to search and replace … Read more

Youtube parameters within WordPress embed code?

It doesn’t look like load policies are configurable with WP’s auto-embed. But see the docs on how to use WP’s embedding: http://codex.wordpress.org/Embeds And see the Developer Resources and API at WP: http://developer.wordpress.com/docs/oembed-provider-api/ WP’s auto-embedding uses oEmbed, and the specs and API are here: http://oembed.com/