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.
# 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 :
# Step 2 – Save the changes to the file and upload the modified file to the academy-pro > lib > templates folder.
Here’s the modified code.Subscribe for new Genesis Tutorials