Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

How to enable a sidebar

Started by gerald watanabe 6 years ago · 5 replies · 1584 views
6 years ago

Theme: Medium
I searched forum, many topics on sidebar. I just want to activate a simple sidebar.
There is no enable sidebar in the configuration or pages.

6 years ago

you will need to include partials/sidebar.html.twig in your base.html.twig, like so:

TWIG
{% block sidebar %}
    {% include 'partials/sidebar.html.twig' %}
{% endblock %}
6 years ago

The solution is going to depend which theme you are using. @hoernerfranz's answer may be correct.

6 years ago

yes, I think so, sidebar.html.twig is in the OP's theme's (Medium) partials folder, but it is not included in any other template, so just including it should do the trick.

6 years ago

My apologies, I missed the statement of theme at the top of OP's initial question.

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
3 66 12 minutes ago
Support · by Anna, 3 days ago
2 72 21 hours ago
Support · by Justin Young, 22 hours ago
1 40 22 hours ago
Support · by Duc , 1 week ago
2 76 6 days ago
Support · by Colin Hume, 1 week ago
2 70 6 days ago