• Resolved ULinn

    (@ulinn)


    Hello,

    I want to add an link to an external page to the WP menu. The link is no problem, but how can I set the target to _blank so the WP-backend remains open?

    Best regards

    Uli

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi @ulinn,

    This needs to be done with custom javascript/jQuery. which you could insert using the plugin itself. You do need to have code/website knowledge to do this. The code would look something like:

    if( $(‘#menu-tools’).length ){
    $(‘#menu-tools’).find(‘a’).attr(‘target’,’blank’);
    }

    This code opens the tools menu in a new window. Thanks,

    Thread Starter ULinn

    (@ulinn)

    Thank you, I’ll try this out and hope I’ll manage even without coding knowledge ??

    Probably it would be a nice feature to have a checkbox “Open in new tab” besides the URL field …

    Best regards

    Uli

    Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi @ulinn,

    That is a good suggestion. Ideally the WordPress menu would support open in new window as a built-in function, so this is why we don’t have it out of the box because it’s not natively supported. But I will consider, if it’s easily possible putting this functionality over the top ??

    Thanks,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘External Link target _blank’ is closed to new replies.