Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

How to enable a sidebar

Started by gerald watanabe 7 years ago · 5 replies · 2367 views
7 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.

7 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 %}
7 years ago

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

7 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.

7 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 TomW, 2 weeks ago
8 228 10 hours ago
Support · by alex, 2 months ago
8 667 1 day ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 160 3 days ago
Support · by TomW, 6 days ago
2 106 6 days ago