For the complete documentation index, see llms.txt. This page is also available as Markdown.

Add Account Navigation

This guide adds two navigation features for logged-in customers:

  1. Account dropdown — the account icon in the header opens a dropdown menu with links to My Projects, My Galleries, Account, and Log out.

  2. Tab navigation — a shared tab bar that appears at the top of the My Projects and My Galleries pages, letting customers switch between them.

Both features are optional and can be set up independently.


Prerequisites

Before starting, make sure you have:

  • The Pixfizz Shopify integration installed and working on your store

  • At least one of the following pages set up:

    • My Projects (Card Grid)

    • My Galleries


Part 1: Account dropdown menu

This converts the account icon in the header from a plain link into a dropdown for logged-in customers. Logged-out visitors still see the icon as a link to the login page.

Step 1: Edit the header section

In your Shopify admin, go to Online Store → Themes, click the three-dot menu on your active theme, and select Edit code.

Open sections/header.liquid.

Find the account icon block. In the Dawn theme, it looks like this:

Replace the entire block with the following:

Step 2: Add the dropdown CSS

In the same sections/header.liquid file, find the <style> block near the top of the file. Add the following CSS at the end, just before the closing </style> tag:

Save the file.

You can add, remove, or reorder links in the dropdown by editing the <a> tags inside the .pxn-account-menu div. For example, to add an Orders link:


Part 2: Tab navigation

This adds a tab-style navigation bar that appears at the top of the My Projects and My Galleries pages, letting customers switch between them.

Step 1: Create the snippet

In the Snippets folder, click Add a new snippet. Name it pixfizz-account-nav.liquid.

Paste the following code:

Save the file.

Step 2: Add the nav to page templates

Open each page template and add the nav render at the top.

templates/page.pixfizz-projects.liquid should contain:

templates/page.pixfizz-galleries.liquid should contain:

Save both files.

Customising the tabs

To add more tabs, add another <li> inside the <ul> in pixfizz-account-nav.liquid. For example:


File summary

After completing this guide, your theme will contain the following files:

File
Purpose

sections/header.liquid

Modified — account icon shows dropdown for logged-in customers

snippets/pixfizz-account-nav.liquid

Shared tab navigation bar

templates/page.pixfizz-projects.liquid

Wrapper — renders nav + projects snippet

templates/page.pixfizz-galleries.liquid

Wrapper — renders nav + galleries snippet


Notes

  • The account dropdown uses Dawn's built-in <details-disclosure> web component, which automatically closes the dropdown when the customer clicks outside it. If your theme does not include this component, the dropdown will still work but will need to be closed by clicking the icon again.

  • The tab navigation highlights the active page using Shopify's request.path variable. The URL handles must match the page handles you created (my-projects and my-galleries). If you used different page titles, adjust the contains checks accordingly.

  • Both features are styled to match the Dawn theme. On other themes, you may need to adjust colours, font sizes, or spacing.

Last updated