skip to Main Content

how can I mention anyone who is in Twitter Usernames in WordPress? like @username and it will reflect in my wordpress post and when someone click on it ,he can redirect to his Twitter account
sample

2

Answers


  1. You can use hyperlink on "@username" and have the URL be their Twitter profile link. Hyperlinks are usually the chain icons in the text editors.

    Aside from the default WordPress editor, you can also set it via HTML as follows:

    <a href="https:/twitter.com/username">@username</a>
    
    Login or Signup to reply.
  2. Assuming you’re using the Gutenberg block editor, you can convert any word to a link. So in your example, you would hightlight @username and convert that to a link which points to the Twitter URL. See https://prnt.sc/10mupqq for an example.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search