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 →

Plugins not showing up on the page

Started by Vivian 9 years ago · 2 replies · 999 views
9 years ago

Hi, I am really new to Grav. I need to make some tweaks to an existing website developed using Grav.

I need to install a few plugins, specifically 'mobiledetect' and 'simplesearch'. However they don't seem to do anything when I install them via dashboard(admin plugin),nothing has shown up on the webpage. Are plugins theme-specific? I am after solutions that don't involve the cmd if possible( so working directly on the dashboard only)

9 years ago

Yes, they need to be implemented in a theme in order to work.

For example, this is how the pagination plugin is implemented in one of the themes. Might help if you need to implement the plugins yourself.

TWIG
{% if config.plugins.pagination.enabled %}
    {% include 'partials/pagination.html.twig' with {'base_url': page.url, 'pagination': allPosts.params.pagination} %}
{% endif %}

Suggested topics

Topic Participants Replies Views Activity
Plugins · by DrPen, 1 month ago
2 478 1 month ago
Plugins · by renedebaaij, 2 months ago
1 350 1 month ago
Plugins · by Thomas, 1 month ago
1 375 1 month ago
Plugins · by complanar, 2 months ago
6 699 2 months ago
Plugins · by BenLaKnet, 2 months ago
1 642 2 months ago