Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

Grav skeleton - link to outside page/blank in menu

Started by Muut Archive 9 years ago · 4 replies · 2271 views
9 years ago

Dear forum members, I try to put link (to outside page) in menu.
I want to use this skeleton -> https://demo.getgrav.org/onepage-skeleton/#highlights

I know how to add element to onepage, but I want to create separate page/no onepage and add this page to menu. Its possible to do that in this or similar skeleton?

Best regards,
Warai

9 years ago

Are you just asking to put a link in the menu of your site that redirects to a URL outside of your site?

If so, make a page and name it what you need to, then go to the Advanced tab. Here you will find a field named Page Redirect. Fill in the URL you need and save it and that should work.

9 years ago

Thank you, but If I dont use admin panel, can I do this using only markdown/YAML ?

9 years ago

Hi, in user/config/site.yaml add

TXT
menu:
  - text: "A link"
    url: "https://google.com"

that should work (it's an Antimatter theme feature, the one used in that skeleton)

9 years ago

Sorry, this tip doesn't work for me :(

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1277 9 years ago
Archive · by Muut Archive, 9 years ago
2 885 9 years ago
Archive · by Muut Archive, 9 years ago
2 4014 9 years ago
Archive · by Muut Archive, 9 years ago
1 2891 9 years ago
Archive · by Muut Archive, 9 years ago
3 1074 9 years ago