השתמש בפרמטר השאלת `navigation_menu` כדי להציג תצוגה מקדימה של תפריט הצד או אפשרויות נוספות

If you are working on a theme for an existing site and want to preview how it will look with the sidebar or other options for the navigation menu site setting, you can use the ?navigation_menu query parameter.

This feature is designed to help theme developers who want their theme to support all modes equally well, or for those who are working on their own site’s theme to prepare for migration from one configuration to another.

To preview a site with different options, append the desired query parameter to the URL of a page:

  • ?navigation_menu=sidebar
  • ?navigation_menu=header_dropdown

For example, you can try it out here on meta:

The navigation menu site setting allows you to configure your main navigation menu to be either a sidebar or a header dropdown.


This document is version controlled - suggest changes on github.

5 לייקים

Does this still work? I have the impression that “legacy” was removed in the meantime.

2 לייקים