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.

Plugins

Plugins not showing up on the page

Started by Vivian 9 years ago · 2 replies · 629 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 Rene, 1 week ago
2 43 1 week ago
Plugins · by Xavier, 4 weeks ago
2 53 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1179 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 48 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 72 2 months ago