plugin-icon

oEmbed styling

제작자: honza.skypala·
This plugins wraps oEmbed generated HTML with divs that allow for styling them with CSS (style sheet of the theme).
등급
5/5
버전
1.1
활성화된 설치 항목
60
최근 업데이트일
Jan 13, 2016

Support for oEmbed, which was added to WordPress in version 2.9, is very nice. Unfortunately the generated oEmbed code is not easy to be centered in the text, which is a common request. This plug-in allows for centering (or even other styling), although it will not solve it by itself, just makes it possible.

This plugin wraps all oEmbed code into div tags with several classes set:

  • oembed
  • oembed-mediatype (e.g. oembed-video)
  • oembed-server (e.g. oembed-youtube-com)
  • oembed-mediatype-server (e.g. oembed-video-youtube-com)

Then you can specify in your theme CSS (in the file style.css) the way you want the embeds to behave. E.g. by adding the following code to style.css:

.oembed { text-align: center; }

you will make all oembeds (videos and pictures) to be centered; anyway, if you understand CSS, you are not limited by centering, but you can add much more (like frames around pictures etc.)

라이선스

WTFPL License 2.0 applies

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. You just DO WHAT THE FUCK YOU WANT TO.
무료Business 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 4.4.34
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.