How can I add an external link in navigation bar?
-
- Sr. Bludit
- Posts: 40
- Joined: Tue Sep 05, 2023 1:33 pm
- Has thanked: 9 times
Hello,
Is there anyway to add an external link to the navigation bar?
I expect an entry to enter page title and page link (external link).
Thank you.
Is there anyway to add an external link to the navigation bar?
I expect an entry to enter page title and page link (external link).
Thank you.
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 78 times
- Contact:
There are the following possibilities:
1) You can use the plugin Redirects:
https://plugins.bludit.com/plugin/redirects
2) You can use a JavaScript like the following:
3) You can redirect with .htaccess.
1) You can use the plugin Redirects:
https://plugins.bludit.com/plugin/redirects
2) You can use a JavaScript like the following:
Code: Select all
<script>
location.replace("https://www.google.com")
</script>
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
-
- Sr. Bludit
- Posts: 40
- Joined: Tue Sep 05, 2023 1:33 pm
- Has thanked: 9 times
Thank you for your reply, but I`m talking about adding a navigation bar item with an external link.
Mentioned solutions are for forwarding the whole site.
Other alternatives allow us adding custom navigation bar items (a title "page name" and a value "external url".
Mentioned solutions are for forwarding the whole site.
Other alternatives allow us adding custom navigation bar items (a title "page name" and a value "external url".
-
- Sr. Bludit
- Posts: 40
- Joined: Tue Sep 05, 2023 1:33 pm
- Has thanked: 9 times
Well, I created a page and added the above-mentioned code (solution #2) inside it.
Clicking the page name inside the navigation bar redirects to the destination. (after a quick showing of the same "empty" page).
It works, but I have a tip for who use this way.
You must decide page type (static).
When I left it undecided, the whole website was redirecting to the destination without clicking anything. I set it to "static" and it became OK.
Clicking the page name inside the navigation bar redirects to the destination. (after a quick showing of the same "empty" page).
It works, but I have a tip for who use this way.
You must decide page type (static).
When I left it undecided, the whole website was redirecting to the destination without clicking anything. I set it to "static" and it became OK.