Skip to content

theCrag/wp-thecrag-oembed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WP theCrag oEmbed

A simple WordPress plugin for enabling theCrag.com as an oEmbed provider.

https://www.thecrag.com/article/oembed

Install Plugin on WordPress

To install the plugin via zip:

  1. Download from here: https://github.com/theCrag/wp-thecrag-oembed/archive/master.zip
  2. Unzip and move it into /wordpress/wp-content/plugins/wp-thecrag-oembed/

To install via git:

cd wp-content/plugins
git clone https://github.com/theCrag/wp-thecrag-oembed.git

Then in the admin GUI to go /wordpress/wp-admin/plugins.php and activate the plugin

Once activated urls such as these will be converted to embedded content using WordPress's oEmbed implementation.

  • https://www.thecrag.com/climbing/australia/ebor-gorge/area/12094801/routes

This only works on WordPress version 4.0 and above.

Internals

It is required that thecrag embedded iframes be dynamically resized to the embeded content. This is quite a tedious task for cross domain iframes, but luckily we can use David Bradshaw's iframe-resizer project (https://github.com/davidjbradshaw/iframe-resizer) to achieve this. The iframeResizer.min.js javascript file is included in this plugin.

TO DO

  • Document some good example sites.
  • Get feedback on the additional url's that would be interesting to embed.
  • Register the plugin on official word press site.

For more information

Contact theCrag directly - [email protected]

About

Easily embed climbing data from theCrag.com into your wordpress site

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published