Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Creating an anchor link from the header to the body on the same page

Started by Dorian Jepsen 3 years ago · 2 replies · 724 views
3 years ago

I'm making a single-page site and I want the links in the header to jump/go to a specific part of the page. I can't figure out how to do it. In this instance, I would like the "Contact" link to scroll down to the "Get in touch. Join the club!" part of the page.

I know how to do this with HTML, but the Grav menu and markdown are stumping me.

3 years ago

@Alpha,

Inline anchors will be created for you out of the box...

last edited 10/26/23 by pamtbaau
3 years ago

And also have a look at this:
/forum/themes-styling/quark-mobile-menu-as-the-modular-page-menu-t1132

👍 1

Suggested topics

Topic Participants Replies Views Activity
General · by jeremycherfas, 1 week ago
4 181 2 days ago
General · by lynbor, 6 days ago
2 122 3 days ago
General · by Old Man Umby, 1 week ago
1 100 1 week ago
General · by Sebastian, 1 week ago
1 124 1 week ago
General · by Andy Miller, 3 weeks ago
0 248 3 weeks ago