Add a YouTube video and center the video

YouTube for Therapists and CounselorsIn general, when you add a YouTube video on a page in your TherapyEverywhere site, it will be left aligned.

While we don’t recommend center-aligning an embedded YouTube video, if you really want to, you can center align. Here’s how.

If your page already contains an embedded YouTube video

  • Navigate to the page that contains the embedded YouTube video.
  • Click Edit.
  • Click Text to make sure that you are in text view.
  • Before the code that embeds the video, add:
<div style="text-align: center">
  • After the  code that embeds the video, add:
</div>
  • Click Update.

If you need to add a YouTube video to your page or post

Don’t have the video embedded yet? Want to add a YouTube video and have the video displayed in the center of the page? Here are the instructions:

  • Go to YouTube and find the video that you want to display on your web page.
  • Click Share > Embed on the YouTube video you want to share.
  • The text box will display the code that you need to copy. Select the code and copy the code.
  • Navigate to the page that contains the embedded YouTube video. Click Edit.
  • Click Text to make sure that you are in text view.
  • In the location on the page or post where you want to embed the video, paste the embed code. Your code should now resemble the following:
<iframe width="420" height="315" 
src="[link to YouTube video]" 
frameborder="0" allowfullscreen></iframe>
  • Before the code that embeds the video, add:
<div>
  • After the  code that embeds the video, add:
</div>
  • Click Update.
Success! You now know how to add a YouTube video, and how to center the video. Here are more tips for using YouTube to promote your practice.