Can you please let me know how I can add a custom Tag button into WP Editor in Text(HTML) mode like

enter image description here

what I would like to insert into the Post is something like

<hr class="dark-line-2" />

every time that user pushed on hr button


You could try a plugin like Visual Editor Custom Buttons.

Or you may want to do something custom. There's a solid example at http://code.tutsplus.com/tutorials/guide-to-creating-your-own-wordpress-editor-buttons--wp-30182.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.