Creating Custom Styles in the TinyMCE Dropdown Menu

If you are creating a WordPress theme for a website, which will be filled by people who do not know HTML, you can add custom styles to them for the convenience of working with them. visual editor TinyMCE.

In the plugins folder, without any subdirectories create a file called custom-style.php and put in this file, following code:

After adding the code, activate the plugin in your WordPress admin – in the plugins section. From the editor TinyMCE, it will be possible to change styles in the drop-down menu Style.

IMPORTANT! I often use the plugin TinyMCE Advanced, it helps to add new buttons to the editor, remove unnecessary buttons and make simple editor settings TinyMCE. With this plugin, you can enable a dropdown list of styles., which will allow you to select the previously connected styles.

Externally, the TinyMCE Advanced plugin looks like this:

TinyMCE Advanced

This is how the TinyMCE Advanced plugin setup looks like:

TinyMCE Advanced

Read more in English: wp.tutsplus.com


Buy WordPress hosting
WordPress tutor
Online tutoring services. List of courses I teach
  • Basic web design course;
  • Site layout;
  • General course on CMS WordPress and continuation of the course on template development;
  • Website development in PHP.
Read more on the page WordPress tutor
*/

Nikolaenko Maxim

Director of web studies ProGrafika. I am developing, website design and promotion. Always glad to new blog readers and good clients.


You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Templates for WordPress
The best hosting in Ukraine
Stable hosting for Drupal