How to open Custom HTML Link to open in new tab

  • Unknown's avatar

    I am adding Custom HTML link through Custom HTML Widget on sidebar but the link is opening in the same window where in I want this to be opened in new TAB.

    Please suggest how to do it.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi sumittaxaii,

    You can make a HTML link open in a new tab by adding the target=”_blank” attribute. You should insert this after the link address.

    Here is an example link that would open the WordPress.com homepage in a new tab:

    <a href="https://www.WordPress.com" target="_blank">WordPress Homepage</a>

    Please let me know if you need any further assistance.

  • Accepted answer

    Just as an update to this, you no longer have to edit the HTML directly. If you’re using the current WordPress editor, just highlight the word(s) you want to link, paste the URL, and toggle “Open in a new tab” in the box that appears. It looks like this:

    how to create a link that opens in a new tab using WordPress

  • The topic ‘How to open Custom HTML Link to open in new tab’ is closed to new replies.