Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #565905

    When you click on the logo I’d like to have it be target=”_blank” – where is that code located and how do I modify it to have it open in a new link?

    #565925

    Hey Andrea!

    Add this to the bottom of your functions.php file.

    add_action( 'wp_footer', 'enfold_customization_logo_newtab' );
    function enfold_customization_logo_newtab() {
    ?>
    <script type = "text/javascript">
    jQuery(document).ready(function(){
    jQuery('.logo a').attr('target', '_blank');
    });
    </script>
    <?php
    }

    Cheers!
    Elliott

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.