Lesson notes
How it works
Why navbars matter on a membership site
Your navbar is where visitors find links. If your public pages link straight to members-only pages, visitors will click them and try to get in. So keep members-only links off public pages, and give members their own navigation.
Hiding a link doesn't lock a page. Anyone who knows the URL can still type it in. Pages are protected by Gated Content, which you'll set up in Journey 3: Memberstack checks the visitor's access and sends anyone without it to your Access Denied URL. Navbars shape what people see. Gated Content decides who gets in.
How to set up a public navbar and a members navbar
Turning each navbar into a Webflow component means you edit one copy of each, and the change shows on every page that uses it.
- 1In your Memberstack dashboard, go to Components and copy a navbar pair.
- 2Paste it into Webflow and delete the instructions, keeping the two navbars.
- 3Turn the members navbar into a Webflow component, for example "Members only nav".
- 4Turn the public navbar into a component, for example "Public nav".
- 5Put the public navbar on public pages and the members navbar on members-only pages.
One navbar that changes when someone logs in
You can also use a single navbar and let Memberstack show or hide parts of it. Add data-ms-content="!members" to Login and Sign up buttons so they only show to logged-out visitors. Add data-ms-content="members" to member links like Dashboard or Profile so they only show to logged-in members. Add data-ms-action="logout" to a link to make it a working log out button.
Memberstack reads these attributes when the page loads and hides whatever doesn't match the visitor. This works on any page, public or private.