Cite-Tag for blockquotes

The TinyMCE Custom Styles Codex Page should get you through this. There are code snippets on that page, but, as an overview, the process requires two steps: Add the TinyMCE “styleselect” element to the first or second row of icons. Add one or more elements to that styleselect menu. If this were me, I would … Read more

How to keep   non-breaking spaces in the visual editor?

This seems to do it: function allow_nbsp_in_tinymce( $mceInit ) { $mceInit[‘entities’] = ‘160,nbsp,38,amp,60,lt,62,gt’; $mceInit[‘entity_encoding’] = ‘named’; return $mceInit; } add_filter( ‘tiny_mce_before_init’, ‘allow_nbsp_in_tinymce’ ); Also see: https://www.tinymce.com/docs/configure/content-filtering/#entities Any improvement suggestions?

Add unique class or ID information to tinyMCE

You can filter the TinyMCE body classes to add or change as needed. It’s a string that’s pre-populated with some things like post type, so the easiest thing to do is append your additional classes (with a preceding space). <?php function wpse_128380_tinymce_body_class( $mce ) { // you could do things here to detect whatever you … Read more

How to use the new Dashicons for custom TinyMCE buttons?

Add Dashicon All buttons inside the TinyMCE have a class, also your custom button. Include (use wp_enqueue_style() a stylesheet with styling with Dashicons, like the follow example. .myicon:before { content: ‘\2605’; display: inline-block; -webkit-font-smoothing: antialiased; font: normal 16px/1 ‘dashicons’; vertical-align: top; } On default is the Dashicon active on each edit page, but add the … Read more

Visual Tab Missing From Editor

Just in case anyone else is having this problem, I’ve found that a pretty reliable way to get your visual editor tab back after upgrading to WordPress 4.0 is: disable all plugins Change the theme to one of the defaults (e.g. TwentyFourteen) Go to “my profile” and check the “disable visual editor” box. Save Go … Read more

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