diff --git a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/header.html b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/header.html index 01744a812..fd258b309 100644 --- a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/header.html +++ b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/header.html @@ -39,7 +39,7 @@ {% endfor %} - {% if not remove_sidebar_secondary %} + {% if not remove_sidebar_secondary and secondary_sidebar_items %}