Warning: Use of undefined constant ‘upload_mimes’ - assumed '‘upload_mimes’' (this will throw an Error in a future version of PHP) in /home/users/1/bridgesystem/web/etsunan/wp-content/themes/hello-elementor-child/functions.php on line 28

Warning: Use of undefined constant ‘custom_upload_mimes’ - assumed '‘custom_upload_mimes’' (this will throw an Error in a future version of PHP) in /home/users/1/bridgesystem/web/etsunan/wp-content/themes/hello-elementor-child/functions.php on line 28
Fuid Vide Embeds – ベトナム起業日記

Fuid Vide Embeds

WordPressサイトにYouTubeやVimeoのビデオをカッコよくエンベッドするFluid Video Embeds

WordPressの動画エンベッドは貼り込みの幅に制限がある WordPressはYouTubeやVimeo動画が簡単にエンベッドできます。単純に動画のURLをコピーして本文にペースとするだけ。ビジュアルエディタ上でもプレビューで貼り込むことができます。 またサイズを小さく指定してエンベッドするのであれば のように動画のURLの前後にエンベッドタグをつけてやりwidth指定をすることもできます。 問題はうちのサイトのようにFull Widthの投稿画面の場合です。 としても元動画のサイズ以上にはレイアウトされません。やりたいことは画面の幅全体に合わせて動画をエンベッドすることです。 Fluid Video Embedsで解決 解決策はFluid Video Embedsプラグインを導入することで可能です。 Fluid Video Embeds プラグインを導入して動画URLの前後に以下のようにShortCodeを挿入します 手打ちでコードを入れてやらなければならないのが少しまどろっこしいですが、このようにサイトの幅全体に合わせて動画をエンベッドすることができます。

More »