Make Menu (primary link) open in new window in Drupal

This project was successfully completed by ngocleanh for $30 USD in a day.

Get free quotes for a project like this
Project Budget
Completed In
1 day
Total Bids
Project Description

On our site's main navigation we have one item we need to have open up in a new window when clicked.

I found some details about this but do not know enough about coding to execute.

The information i found is:

Opening a primary link in a new tab or window (_blank):-

add following jquery code to your [url removed, login to view] file in head area

provided that jquery must be run on your machin.


$('#id').children(":first").attr("target", "_blank");


****where #id is your li tag id

I don't know if this is the best way or not. Either way, i wouldn't know how to implement this.

Completed by:
Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online