Title: [Plugin: Black Studio TinyMCE Widget] &quot;Youtube Shortcode&quot; button not visible
Last modified: August 20, 2016

---

# [Plugin: Black Studio TinyMCE Widget] "Youtube Shortcode" button not visible

 *  Resolved [matteth](https://wordpress.org/support/users/matteth/)
 * (@matteth)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-black-studio-tinymce-widget-youtube-shortcode-button-not-visible/)
 * I’m trying to use Black Studio TinyMCE Widget in conjunction with the Youtube
   shortcode plugin to enable rich text, image and Youtube insertion in the same
   widget.
    The Youtube shortcode plugin adds a button to the TinyMCE toolbar, which
   inserts a shortcode in the text field. But the button doesn’t show in the Black
   Studio TinyMCE Widget.
 * I’m not sure in which of the plugins the problem lies – can anyone find a solution?
 * [
    Black Studio TinyMCE Widget
   
    [Youtube shortcode plugin](http://wordpress.org/extend/plugins/youtube-shortcode/)

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

 *  [Tubal](https://wordpress.org/support/users/tubal/)
 * (@tubal)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-black-studio-tinymce-widget-youtube-shortcode-button-not-visible/#post-2514092)
 * Hi, I’m the author of the Youtube shortcode plugin.
 * Please, go to the plugins folder, then go to the youtube-shortcode folder and
   edit the youtube-shortcode.php file. Replace the Youtube_shortcode function (
   class constructor) with the one I’ve pasted below. Save the file and test if 
   the button appears now in your widget:
 *     ```
       // Constructor / initialize plugin
       function Youtube_shortcode()
       {
           // Load our shortcode only on the frontend
           if ( !is_admin() )
           {
               // Is it a mobile phone? What browser?
               $this->is_mobile();
               // Guess once host language (used for Youtube's old embed code = Flash only)
               $this->get_hl();
               // do_shortcode() is registered as a default filter on 'the_content' with a priority of 11.
               add_shortcode('youtube_sc', array($this, 'output_html'));
               add_action('wp_head', array($this, 'output_css'));
           }
           else
           {
               add_action('admin_init', array($this, 'setup_tinymce_button'));
           }
       }
       ```
   
 * Please report if it worked.
 *  Thread Starter [matteth](https://wordpress.org/support/users/matteth/)
 * (@matteth)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-black-studio-tinymce-widget-youtube-shortcode-button-not-visible/#post-2514098)
 * Yes, it works! This makes for a nice solution for letting clients have editable
   widgets, with video capabilities.
 * Will you include the fix in the plugin?
 * [Thanks Tubal!](https://twitter.com/#!/Flattr/statuses/157747202566008833)🙂
 *  [Tubal](https://wordpress.org/support/users/tubal/)
 * (@tubal)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-black-studio-tinymce-widget-youtube-shortcode-button-not-visible/#post-2514101)
 * Glad it worked.
 * I will include the fix in the next version so that any rich editor shows the 
   Youtube button.
 *  [Tubal](https://wordpress.org/support/users/tubal/)
 * (@tubal)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-black-studio-tinymce-widget-youtube-shortcode-button-not-visible/#post-2514104)
 * I’ve added a Flattr this! link to the documentation website.
 * Thanks for your suggestion!!
 *  Thread Starter [matteth](https://wordpress.org/support/users/matteth/)
 * (@matteth)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-black-studio-tinymce-widget-youtube-shortcode-button-not-visible/#post-2514106)
 * Wonderful! I’ve now flattred you, for great support 🙂

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

The topic ‘[Plugin: Black Studio TinyMCE Widget] "Youtube Shortcode" button not 
visible’ is closed to new replies.

 * 5 replies
 * 2 participants
 * Last reply from: [matteth](https://wordpress.org/support/users/matteth/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-black-studio-tinymce-widget-youtube-shortcode-button-not-visible/#post-2514106)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
