Troubles getting Shopify settings in my liquid code

Topic summary

Problem: A full-width dropdown menu wasn’t appearing on a Shopify storefront. The author suspected the Liquid logic controlling the fullwidthMenu variable.

Details: In nav-item.liquid, fullwidthMenu is set true if (link.levels > 1 and link.links.size > 4) or if menuDropdown != ‘’. The classes dropdown-menu-list and nav-item-mega-menu are added based on these conditions. The author tried to inspect values like link.levels, link.links.size, and menuDropdown but couldn’t find their sources.

Key concepts: Liquid is Shopify’s templating language. The Theme Editor’s Header Group controls blocks/sections whose presence populates variables used by the template.

Resolution (most recent update): The issue was not with the code logic. The required block had not been added under the Header in the Theme Editor’s Header Group. Adding that block populated the necessary settings/variables, enabling the full-width menu.

Outcome: Fixed by theme configuration; no code changes required. Status: Resolved with no outstanding questions.

Summarized with AI on December 29. AI used: gpt-5.

Hello,
I am having troubles to display a full width dropdown menu on the storefront and I am trying to troubleshoot what is going on. Could you help me?

From what I can understand, this code checks the settings and it should apply a class to display the menu in full width in case the page is renderer in desktop

in nav-item.liquid file →

(…)
{%- liquid
assign fullwidthMenu = false
if link.levels > 1 and link.links.size > 4 or menuDropdown != ‘’
assign fullwidthMenu = true
elsif menuDropdown != ‘’
assign fullwidthMenu = true
endif
-%}
(…)

  • (...)

    Now, it seems like fullwidthMenu variable is false, probably because link.levels < 1 or link.links.size < 4 or menuDropdown = ‘’ , I tried to capture this values to see where is the problem, but I don’t know how to look for them or where do they come from.

    Do you know where can I see the settings from where this is information or these settings are taken?

    Thank you!!!

  • Replying to myself as I found what was wrong → I hadn’t added the block under the header in the Header Group → theme editor

    Leaving it here just in case help someone