• Resolved galapogosian

    (@galapogosian)


    I got a reply on my last question referring to opening menu items in a new window, which worked. As I updated the theme today, I found I had to go back and reinsert that code:

    <?php
    add_filter( 'nav_menu_link_attributes','nobita_add_attribute', 10, 3 );
    
    function nobita_add_attribute( $content,$item, $args ){
    
     $content['target']= '_brank';
     return $content;
    }
    ?>

    What I noticed though was that the code opens one new window and each additional item clicked refreshes that tab to the new content. What code do I need to make 5 clicked menu items open in 5 different tabs?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Open EACH menu link in new tab’ is closed to new replies.