How to add a dropdown menu to the icons in dawn theme

Topic summary

Issue: A Shopify store owner wants to add a dropdown menu to the account icon in the Dawn theme header, similar to examples showing login/register options.

Solution Provided:

  • Add specific markup code to sections/header.liquid file below the customer accounts conditional block
  • The code creates a dropdown structure with login and register links

Follow-up Request:

The original poster successfully implemented the dropdown but requested schema settings to customize it through the theme editor instead of editing code directly. They want to:

  • Change icons for login/register/cart
  • Match styling to existing website elements
  • Avoid manual code updates each time

Advanced Implementation:

A helper provided detailed schema code to add customizable dropdown settings:

  1. Add schema code to sections/header.liquid with select options for different icon styles (login1-4, register1-4, cart1-4)
  2. Update the dropdown display code to reference these schema settings
  3. Replace default icons with custom ones

This creates a “Custom Header Icon drop down Menu” section in the theme editor with selectable icon options for login, register, and cart functions.

Summarized with AI on November 9. AI used: claude-sonnet-4-5-20250929.

Hello,

How am I able to make a dropdown menu for the icon ‘account’ through the dawn them.
For example like this:

But with my own wording etc. Thank you

Hi @PixiePawsPets ,

You only follow structure below:


You only update text, svg, text

1 Like

Thank you for your reply, I am still new to code editing, Can you please show me step by step where to find this area of code to implement please & Thank you!

Hi,

May I suggest to update code these steps:

  1. Go to Store Online-> theme → edit code

  1. Sections/header.liquid
  2. Find code like the screenshot below

  1. Replace code below
{%- if shop.customer_accounts_enabled -%}
      	
	    

      {%- endif -%}
1 Like

Thank you so much! :grinning_face_with_smiling_eyes:
It now looks like this;

Would you have the code to add a schemer so I can edit these changes for example “Custom Header Icon drop down Menu” directly from my editor rather then needing to update & change the code each time? So I would be able to also make it match the websites already implemented dropdown menu but with Icons etc. Please & Thank you

Hi,

Does it like the screenshot?

Hello,
Thats what I would like to have, but mine doesnt show that, example of my header section in editor;

Hi,

I am not sure your request. However I suggest code below

  1. Add code below to schema sections/header.liquid
{
      "type": "select",
      "id": "iconlogin",
      "options": [
        {
          "value": "login1",
          "label": "Login icon 1"
        },
        {
           "value": "login2",
          "label": "Login icon 2"
        },
        {
           "value": "login3",
          "label": "Login icon 3"
        },
        {
           "value": "login4",
          "label": "Login icon 4"
        }
      ],
      "default": "login1",
      "label": "Custom Header Icon drop down Menu Login"
    },
    {
      "type": "select",
      "id": "iconregister",
      "options": [
        {
          "value": "register1",
          "label": "Register icon 1"
        },
        {
           "value": "register2",
          "label": "Register icon 2"
        },
        {
           "value": "register3",
          "label": "Register icon 3"
        },
        {
           "value": "register4",
          "label": "Register icon 4"
        }
      ],
      "default": "register1",
      "label": "Custom Header Icon drop down Menu Register"
    },
    {
      "type": "select",
      "id": "iconcart",
      "options": [
        {
          "value": "iconcart1",
          "label": "Cart icon 1"
        },
        {
           "value": "iconcart2",
          "label": "Cart icon 2"
        },
        {
           "value": "iconcart3",
          "label": "Cart icon 3"
        },
        {
           "value": "iconcart4",
          "label": "Cart icon 4"
        }
      ],
      "default": "iconcart1",
      "label": "Custom Header Icon drop down Menu Cart"
    },

  1. Update code that we suggested to show dropdow to code below
{%- if shop.customer_accounts_enabled -%}
      
      

      {%- endif -%}
  1. Replace icons by your icons