[resolved] Open EACH menu link in new tab (3 posts)

  1. galapogosian
    Posted 1 year ago #

    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:

    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?


  2. nobita
    Theme Author

    Posted 1 year ago #

    Hi galapogosian

    Try below ( for windows )

    Control + click link

    Thank you.

  3. nobita
    Theme Author

    Posted 1 year ago #

    Two weeks have passed since remained without reply, I will change to Resolved.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic