Offer External links in the navigation menu

  • 2
  • Question
  • Updated 3 years ago
  • Answered
Hello,
I think that Yola should offer the ability to have links in the navigation menu that point to external domains because it is hard getting HTML redirects to work especially when it redirects in the sitebuilder. This would have been good to be released with the latest addition of sub-menus I was hoping it was going to be released then.

Amar
Photo of Amar

Amar

  • 201 Posts
  • 14 Reply Likes
  • happy

Posted 7 years ago

  • 2
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
Hi Amar

You can do this without redirects, actually! :) With some HTML code.

Just go into the Navigation Page manager (the page manager is found under Page > Page Manager) and for the "Label" (Click on "Edit" for the menu link you want to go to an external URL to see the Label text area) put in this code:

<a href="http://example.com/"> LABEL TEXT GOES HERE </a>

And then just change the "http://example.com/" to the external URL that you want it to go to and then change "LABEL TEXT GOES HERE" to the label text you want displayed.

You should try this on a test site first with the same style that you have on your site just to see if it works with your style. (It should work)

I did this on my site: http://nathansmusicstudio.cz.cc/ The "Blog" and "Status Blog" links are external using this trick I learned and it works.

However, this feature would be much better and easier than using this code hack!

I hope this helps!

Nathan
Photo of Amar

Amar

  • 201 Posts
  • 14 Reply Likes
Thanks so much! It works like a charm!

Amar
www.frodotraveller.com
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
Awesome! I'm glad it works! :)
Photo of Brianna

Brianna

  • 2045 Posts
  • 92 Reply Likes
thanks for your help, Nathan :)
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
No problem :)
Photo of Peter Sauer

Peter Sauer

  • 150 Posts
  • 65 Reply Likes
Hi
I am using this html code to use as a redirect, I want this page to openĀ  in a new window as the new page I am adding does not have a link back to the existing page.

<script type='text/javascript'>if(!window.top.Yola){window.location='http://www.google.com'};</script>;