- This topic has 3 replies, 2 voices, and was last updated 16 years ago by
imported_Ryan.
-
AuthorPosts
-
January 13, 2010 at 1:48 am #1187
DrFingerless
MemberI have a PixoPoint menu where I need one of my navigational items to take the user to an external site rather than to a page within my WordPress site. I am not a PHP programmer so I am not sure how to add a ‘if (this is the page) {meta-refresh}’. Is there anyway for this to be done easily using PixoPoint or do I need to get someone to write some PHP for me?
January 13, 2010 at 6:04 am #7591imported_Ryan
MemberI think you are over-complicating things. You can add a link to anywhere you want via one of the the "Custom code" menu items.
The following will add a link to Google:
[code:11fwc03a]<li><a href="http://google.com/">Google</a></li>[/code:11fwc03a]If for some reason you need to do a redirect via a WordPress Page, then you would be much better off doing it with a 301 redirect. Within WordPress there is a wp_redirect() function (I might have the name wrong, but it’s something like that) which you can use to do the redirects for you. But it doesn’t sound like that’s what you are trying to achieve anyway.
January 13, 2010 at 7:28 am #7592DrFingerless
MemberThanks for this tip, Ryan. I have used one of the custom code menu items and in does indeed add a menu item to my top-level navigational structure which links to the site I require. The only thing is that I cannot see where to customize its placement in the order of my other top-level links. Currently it is just sitting to the left of the ‘home’ link which does not look good. The custom link does not appear in the ordering list under the Advanced Tab so I can’t move it about that way and as it doesn’t reference a page I can’t order it through the hierarchy box that forms part of each WP page. Any suggestions?
January 13, 2010 at 12:28 pm #7593imported_Ryan
MemberThe ordering list is for WordPress pages.
Are you trying to insert this into your list of pages? If so, this isn’t going to work. I’m working on a system which will work, but it’s not available yet.
This would take you back to the wp_redirect() idea. You could do that via a custom plugin, or there might be one available already which can do it.
-
AuthorPosts
- You must be logged in to reply to this topic.