generate_navigation_location

generate_navigation_location

The generate_navigation_location filter allows you to choose where your primary navigation is located.
Default (string): Your option set in Customize > Layout > Primary Navigation
Available options
nav-below-header
nav-above-header
nav-float-right
nav-float-left
nav-left-sidebar
nav-right-sidebar

If you want to remove the navigation from a page, simply return empty single quotes:
return '';
Usage
Please refer to the Using Filters article to learn how to use this filter.

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註