dev-master
9999999-devOptimizes embeds in WordPress themes.
MIT
The Requires
- php >=7.0.0
1.0.0
1.0.0.0Optimizes embeds in WordPress themes.
MIT
The Requires
- php >=7.0.0
Wallogit.com
2017 © Pedro PelĂĄez
Optimizes embeds in WordPress themes.
Optimizes embeds in WordPress themes., (*1)
You can install the package via Composer:, (*2)
composer require mindkomm/theme-lib-embed
functions.php, (*3)
$embeds = new Theme\Embed\Embed(); $embeds->init();
The Embed constructor takes two parameters:, (*4)
Hereâs an example if you wanted your oEmbed contents to have a width of 800px and a height of 400px., (*5)
$embeds = new Theme\Embed\Embed( 800, 0.5 ); $embeds->init();
If you already have an embed_oembed_html filter in place that adds divs with classes responsive-embed and keep-aspect-ratio, you could probably remove it, because this library already adds one, too., (*6)
This is a package that we use at MIND to develop WordPress themes. Youâre free to use it, but currently, we donât provide any support., (*7)
Optimizes embeds in WordPress themes.
MIT
Optimizes embeds in WordPress themes.
MIT