This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Nice YouTube Lite


Upgrade to the full version of the Nice YouTube plugin.

Get the easiest and most convenient way to add a YouTube video player to posts, pages and sidebar widgets with Nice YouTube Lite plugin!

Whether you want to display one YouTube video or many YouTube videos, the Nice Youtube Lite plugin makes it easy to turn any WordPress post, page or sidebar widget into a video experience. No need to horse around with complicated embed codes, the Nice Youtube Lite’s implementation is quick, flexible and easy to use. Simply enter the Nice Youtube Lite shortcode where you want your YouTube video player to appear and you’re all set!


[niceyoutubelite id=”UXtjrb0WBhc”]

Some cool features:

  • Easily add YouTube videos anywhere in a post, page or sidebar widget.
  • Supports multiple YouTube videos per post, page or sidebar widget.
  • Set the default YouTube video player width.
  • Set the default YouTube video player aspect ration.
  • Automatically calculates YouTube video player height based on width setting.
  • Supports an optional per YouTube video player width setting.
  • Supports optional per YouTube video player aspect ratio customization.
  • Includes convenient admin settings page for easy configuration.
  • Includes powerful shortcode Youtube player placement.


Basic Usage

Usage is simple. Create a new post, page or text widget add your content to it. Wherever you want a YouTube video to appear include a Nice YouTube shortcode, like the following example. When you view your published post, page or widget the shortcode will be automatically replaced with a corresponding YouTube video.

Shortcode Example

[niceyoutubelite id="UXtjrb0WBhc"]

Note, id is the YouTube video id of your video.

Shortcode Syntax

[niceyoutubelite attribute_name=”attribute_value”]

Shortcode Attributes

The Nice Youtube Lite plugin provides options through the inclusion of 3 shortcode attributes. These attributes are as follows.

  • id
  • width
  • aspect_ratio

Each attribute can be set in the shortcode by including the attribute name followed by an equals sign and the attribute value in quotes. You can set a default value for all of the attribute, excluding the video “id”, on the admin settings page.

Attribute Example

[niceyoutubelite id="UXtjrb0WBhc" width="320"]

Shortcode Attribute Definitions


[niceyoutubelite id=”YouTube_Video_Id”]

Sets the video id for the YouTube video you wish to display. The YouTube video id is displayed in your browsers address bar when you are watching a video on YouTube. To obtain the video id, go to your video manager on YouTube and simply play your video. Look at your browser’s address bar. You will see a web address that looks like the following.

The portion of the address after the “v=” is the video id.


[niceyoutubelite id="UXtjrb0WBhc"]

Notice that the id value is the same as the value that comes after the “v=” portion of the YouTube video URI.


[niceyoutubelite width=”640″]

Use width to set the YouTube video player width.


[niceyoutubelite aspect_ratio=”16:9″]

Set the YouTube video player’s aspect ratio with the aspect_ratio attribute. The default YouTube video aspect ratio is 16:9. Older videos probably have an aspect ratio of 4:3. The aspect ratio and width settings are used to automatically calculate the appropriate height for the YouTube video player.

Plugin Settings

The Nice Youtube Lite plugin allows you to configure the plugin’s global default settings. Configuration of the plugin is made quick and easy through the use of it’s admin settings page. You can find the settings page at WP-Admin>>Settings>>Nice Youtube Lite. The global default settings that are made available to you are as follows.

Default video width

Enter the default YouTube video embed width in pixels. This will be used for all videos that do not have a width set in their respective shortcodes.

Default video aspect ratio

Enter the YouTube player aspect ratio. This will be used to determine the height of the video player. YouTubes standard aspect ratio is 16:9. Older videos may have an aspect ratio of 4:3.


How many YouTube videos can I place in a post, page or sidebar widget?

This is unlimited. You may place as many YouTube videos as you would like in a post, page or sidebar widget.

Where can I get technical support?

You can get support through our support forum

Where can I find the Nice Youtube Lite documentation page?

You can find the Nice Youtube Lite Documentation here.

How do I set a height for the YouTube video player?

The height for the video player is conveniently set automatically. The automatic height calculation is based on the width and the aspect ratio settings. So, there is never any need to monkey around with complicated math calculations to ensure the proper width to height settings. The Nice YouTube plugin handles this for you.

How can I center or right justify the YouTube video player?

Please see the full version of for extended features.

How can I set autoplay and other YouTube player settings with the Nice YouTube Lite plugin?

Please see the full version of for extended features.



  • First release of the plugin

Contributors & Developers

This is open source software. The following people have contributed to this plugin.


Browse the code