Title: Youtube resizing/alignment shortcode not working
Last modified: August 20, 2016

---

# Youtube resizing/alignment shortcode not working

 *  [Wildfire4](https://wordpress.org/support/users/wildfire4/)
 * (@wildfire4)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/youtube-resizingalignment-shortcode-not-working/)
 * Hi there,
 * Happy New Year!
 * I am currently writing a best of 2011/ones to watch for 2012 feature for my blog
   [http://www.youknowthescore.net](http://www.youknowthescore.net). For each film/
   album I am writing about I would like to include an image (say, the album cover),
   the text and then a video. The problem is, the Youtube video frame is wider than
   the picture and it looks messy. I tried using the embed shortcodes listed here
   but when I preview, the page simply displays the code.
 * I wish to set the width at 319px and, if possible, align to the center. This 
   is the first video:
 * Thanks in advance,
 * Alex

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Darin Kotter](https://wordpress.org/support/users/dkotter/)
 * (@dkotter)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/youtube-resizingalignment-shortcode-not-working/#post-2484842)
 * The shortcode below should do what you want:
 * `[youtube=http://www.youtube.com/watch?v=LBYBNyMNySU&w=319&h=246]`
 *  Thread Starter [Wildfire4](https://wordpress.org/support/users/wildfire4/)
 * (@wildfire4)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/youtube-resizingalignment-shortcode-not-working/#post-2484879)
 * Thanks Dkotter,
 * I copied the code you gave but unfortunately it still doesn’t work! I removed
   all possible additional formatting but it still simply displays the code. I also
   tried entering the code in a new post but again suffered the same problem
 * Is it possible that I may have somehow mistakenly prohibited shortcodes?
 * Thanks for your support,
 * Alex
 *  [Darin Kotter](https://wordpress.org/support/users/dkotter/)
 * (@dkotter)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/youtube-resizingalignment-shortcode-not-working/#post-2484889)
 * Interesting. I just tried it on my site and it worked fine. I don’t think there
   is an option anywhere to enable or disable shortcodes, so my guess would be a
   conflict with a plugin or with your theme. You could always just use a plugin
   to embed YouTube videos. You can find quite a few [here](http://wordpress.org/extend/plugins/search.php?q=youtube).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Youtube resizing/alignment shortcode not working’ is closed to new replies.

## Tags

 * [alignment](https://wordpress.org/support/topic-tag/alignment/)
 * [embed](https://wordpress.org/support/topic-tag/embed/)
 * [problem](https://wordpress.org/support/topic-tag/problem/)
 * [resize](https://wordpress.org/support/topic-tag/resize/)
 * [Sizing](https://wordpress.org/support/topic-tag/sizing/)
 * [Youtube](https://wordpress.org/support/topic-tag/youtube/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Darin Kotter](https://wordpress.org/support/users/dkotter/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/youtube-resizingalignment-shortcode-not-working/#post-2484889)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
