How to add a button in the visual post editing mode? (1 post)

  1. utnalove
    Posted 3 years ago #

    Hello, I would like a button that does the following:

    -when I am writing a post I can select some text with the cursor;
    -the text is selected I can click a button;
    -the button appends

    <p lang="en">

    at the beginning of the text highlighted and

    at the end.

    Pretty much what happens if I click the b button. WP appends <strong>b</strong>. I need the same but with <p lang="en">text</p>

    Can you please redirect me to some tutorial? Or maybe you have the info ready to share here?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.