• Resolved doverkj

    (@doverkj)


    The buttons below the slider image on my main page are opening in a new window and I can’t figure out why. Any suggestions?

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Jarret

    (@jarretc)

    The target value for those links is set to _blank in the code which causes them to open using a new window. If you’re using a child theme, you can modify the code on line 505 in /wp-content/themes/benevolent/inc/extras.php to remove the _blank value

    if( $url && $link ) echo '<a class="btn" href="' . esc_url( $url ) . '" target="_blank">' . esc_html( $link ) . '<span class="fa fa-angle-right"></span></a>';

    Thread Starter doverkj

    (@doverkj)

    That worked, thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Link Opening in New Window’ is closed to new replies.