diff --git a/templates/layout/page.html.twig b/templates/layout/page.html.twig index 2e9ccc56..fab8b089 100644 --- a/templates/layout/page.html.twig +++ b/templates/layout/page.html.twig @@ -175,7 +175,8 @@ {{ page.above_content }} {% endif %} - {% if page.left_sidebar|render or page.right_sidebar|render %} + {# We are checking for length below to make sure that the sidebars have any content. This is so that sidebar menus don't render the sidebars if the menu is empty #} + {% if (page.left_sidebar|render|striptags|trim|length > 0) or (page.right_sidebar|render|striptags|trim|length > 0) %} {% if page.left_sidebar|render and page.right_sidebar|render %}