Open Menu link in new tab/ window

open (13 posts) (3 voices)

  1. Is it possible to make certain menu links open in a new tab/window?

    Thanks

    Posted 5 years ago #
  2. Elliott
    Support

    Hello Karl,

    Code the link like this,

    <a href = "#" target = "_blank">Click me</a>

    Posted 5 years ago #
  3. I can't access the code like that when creating my menu with Wordpress' tool. See screenshot.

    Also, is it possible to make the socialble icons all open in a new tab?

    Attachments

    1. Screen_Shot_2012-08-13_at_7.31.27_PM.png (17.4 KB, 1 downloads) 5 years old
    Posted 5 years ago #
  4. Elliott
    Support

    For the menus click on "Screen Options" in the top right hand corner and check the "target" field to display and you can then change the target for each menu link.

    For the social icons add this in Dashboard -> your theme -> General Settings -> Custom Javascript,

    jQuery('.social_icon a').attr('target', '_blank');

    Posted 5 years ago #
  5. Thanks!

    Posted 5 years ago #
  6. omg
    Member

    That is not working for me to open in a new tab. I have tested it in different browsers but it is not working. thoughts?

    http://tinyurl.com/pjv5oxe it is the "Get App" menu item that should open in new tab.

    Posted 2 years ago #
  7. omg
    Member

    ??? Any thoughts?

    Posted 2 years ago #
  8. omg
    Member

    Dashboard -> your theme -> General Settings -> Custom Javascript,

    jQuery('.social_icon a').attr('target', '_blank');

    is not working for me, it opens in the same window, not a new tab.

    Posted 2 years ago #
  9. Elliott
    Support

    Do this #menu-item-681 a instead of .social_icon a.

    Posted 2 years ago #
  10. omg
    Member

    Hello, I'm sorry but that isn't working, is 681 the correct number?

    Posted 2 years ago #
  11. omg
    Member

    Hello? Anyone?

    jQuery('#menu-item-681').attr('target', '_blank');

    is not working.

    http://tinyurl.com/mug7vme

    It will be two different pages: "Resources" > "Tax Newsletter"
    and also "Resources" > "2015 Tax Planning Guide"

    Posted 2 years ago #
  12. omg
    Member

    Hello?

    WTF? Does anyone at MSMY still even work there?

    Posted 2 years ago #
  13. omg
    Member

    Can someone at MSMY please answer me?

    Posted 2 years ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme