How can I make a WordPress menu item to an external URL ?

Status
Not open for further replies.


I believe you'd have to hardcode it into the menu. Wordpress menu items are dynamically generated based on your static pages, and I don't think it support offsite links.
 
I believe you'd have to hardcode it into the menu. Wordpress menu items are dynamically generated based on your static pages, and I don't think it support offsite links.

@OP: Yup, this is going to be your best bet to keep things simple.

Regardless, there is a plugin that does exactly this: Redirectify
 
You just need to edit the file that contains the navbar, and insert a seperate html link to the absolute url, generally within existing navbar < ul > tags - smth like:

< li > < a h ref = " http://mysitelink.com ">anchor text< /a > < /li >

obviously, remove the spaces!
 
You just need to add a static html link to the navbar, pointing to the absolute url - something like this, inside the existing navbar < ul > tags:

< li >< a h ref = " http: // my site link " > anchor text < / a> < / li >

Obviously remove the spaces...
 
You just need to add a static html link to the navbar, pointing to the absolute url - something like this, inside the existing navbar < ul > tags:

< li >< a h ref = " http: // my site link " > anchor text < / a> < / li >

Obviously remove the spaces...

yeah, easiest way to do this is to add a 'text' widget to the sidebar assuming the theme is widget compatible, then in the text widget just use html as noted above.
 
Status
Not open for further replies.