Answer the question
In order to leave comments, you need to log in
Your class in tinymce wordpress?
Hello, maybe someone knows how to add a button in the wordpress editor so that it frames the text in a certain class. It
worked like bold text
. The principle is this, they wrote a test, highlighted it, clicked on this button, it added a class with an open tag before the text, and at the end with closed
Answer the question
In order to leave comments, you need to log in
Hello!
Maybe this article will be useful for you -
https://codex.wordpress.org/TinyMCE_Custom_Buttons
Well, look at the codex for creating a shortcode. When selected, a shortcode will be added to the beginning and end, and then there will be a button on the front...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question