Allowing style tag in TinyMCE editor

There are some things to try in this stackoverflow thread. The one I’m trying: add_filter(‘tiny_mce_before_init’, ‘vsl2014_filter_tiny_mce_before_init’); function vsl2014_filter_tiny_mce_before_init( $options ) { if ( ! isset( $options[‘extended_valid_elements’] ) ) { $options[‘extended_valid_elements’] = ‘style’; } else { $options[‘extended_valid_elements’] .= ‘,style’; } if ( ! isset( $options[‘valid_children’] ) ) { $options[‘valid_children’] = ‘+body[style]’; } else { $options[‘valid_children’] .= … Read more

Adding YouTube button to TinyMCE editor

The problem is that the URL to your script is pointing to the Thematic theme directory, not your child theme. Instead of: $plugin_array[‘youryoutube’] = get_bloginfo(‘template_url’).’/editor_plugin.js’; …you need: $plugin_array[‘youryoutube’] = get_stylesheet_directory_uri() . ‘/editor_plugin.js’;

Where did my Theme Editor go?

The theme editor is not available on multisite installations. Changing this would require modifications to WordPress Core, that would need to be remade everytime you updated WordPress. I STRONGLY advise against this. Also keep in mind that if one user edits a theme, everyone else using that theme gets the changes. There is only one … Read more

change width of the fullscreen editor

You probably mean the Distraction Free Writing mode. Am I right? Then you changed wrong ID, it’s #wp-content-editor-container what you want to edit. But every time you hack WordPress core, a kitten dies. So if you like kittens, here is no-offensive solution for you. Put this code into functions.php file in your theme: <?php add_filter( … Read more

Show WordPress Plugin Menu(Admin) To Editor

Check these links below. This is where the permissions are being set for your pretty link plugin admin menu: pretty-link/prli-main.php -> line 16 – it’s set to administrator you want edit_posts pretty-link/prli-main.php -> line 160 – it’s set to $current_user->user_level >= 8 you want $current_user->user_level >= 7 What are your options? OPTION 1 – Change … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)