• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
WPFeed

WPFeed

  • News
  • Tutorials
    • WordPress Multisite
    • BuddyPress
    • Design
  • Reviews
    • Plugins
  • Roundups
  • Snippets
  • Giveaways
Home » BuddyPress » How to Open Comment Author Link in New Tab

How to Open Comment Author Link in New Tab

Snippets

Whenever I want to open a comment author link, I will make sure to open it a new tab so I can continue reading the article without leaving the current view. However, it’s a bit frustrating when I forgot to hold the CTRL button (for Windows) while clicking the left button in my mouse, causing the comment author link to open in my current view.

Turn out with this little snippet, I can set all comment author links to be open in new tab. No more going back and forth in case I forgot to open the link in new tab.

Simply put the snippet above in functions.php of your child theme, or even better, in functionality plugin. Hat tip to Pixert.com for the snippet. The code has been tested and proved to be working perfectly by our team but if you’ve any problem, feel free to drop your comment below.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • WordPress is a brilliant platform that is loaded with tons of stuff for websites.
  • How to Sync Stock & Price for WooCommerce Products
  • How to migrate a WooCommerce Store to a new site
  • How to Import WooCommerce Products
  • How to export WooCommerce Orders

Copyright © 2023 · WPFeed.com - A Project of TechAbout LLC.

  • About us
  • Advertise
  • Write for us
  • Terms and Conditions
  • Privacy Policy
  • Contact us