Open Academy Pro Hero Buttons In New Window By Adding Target Attribute target=”_blank”

This tutorial shows you how to add the target="_blank" to the HTML for the hero section buttons in Academy Pro so they open in a new window.

Demo Video #

Shows you how to modify the HTML for a button so the link opens in a new window.

Tested using the Academy Pro child theme by StudioPress. This method will work in any WordPress theme.

Installation Steps

# Step 1 – Add this HTML target="_blank" to the existing HTML which generate the hero buttons in academy-pro > lib > templates > hero-section.php on lines 74 and 78 like this :

HTML a target attribute

# Step 2 – Save the changes to the file and upload the modified file to the academy-pro > lib > templates folder.

Step 2

Here’s the modified code.

Related Tutorials

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.