Skip to content

Instantly share code, notes, and snippets.

@Perun
Created June 25, 2013 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Perun/5861631 to your computer and use it in GitHub Desktop.
Save Perun/5861631 to your computer and use it in GitHub Desktop.
oEmbed-Breite festlegen. Seit WordPress 3.5 muss man in der functions.php die Breite der oEmbeds (eingebettete Medien) festlegen. Siehe den Artikel http://www.perun.net/2012/12/13/wordpress-die-breite-der-oembeds-videos-bestimmen/. Im folgenden Beispiel wird die Breite auf 550 Pixel gesetzt.
<?php
//oEmbed-Breite
if (!isset($content_width)) $content_width = 550;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment