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

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

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

  • Open Specific Button Links In a New Window Or Same Window

Academy Pro Theme

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.