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 →

Feed plugin and <head> tag

Solved by pamtbaau View solution

Started by David Meissner 11 months ago · 3 replies · 472 views
11 months ago

The documentation for the Feed plugin says to add a link to the HTML head tag to enable autodiscovery of the feed. How is this done? I assume I have to modify a .twig file somewhere, but which file? The example given for adding a button to the sidebar names the file to edit, but I can’t find a similar example for the head tag.

11 months ago Solution

@dmeissner:
I assume I have to modify a .twig file somewhere, but which file?

There usually is only one twig file that creates the \<head>, and it is extended by all page types: /user/themes/yourtheme/templates/partials/base.html.twig

11 months ago

Thank you. So possibly an inherited theme would be the recommended way to handle this? I’ll go ahead and edit the file directly for now, and if I eventually need other theme changes then I can create an inherited theme.

11 months ago

@dmeissner,

So possibly an inherited theme would be the recommended way to handle this?

Good point! I forgot my usual warning: Only make theme customisations in an inheriting (aka. child) theme.

Suggested topics

Topic Participants Replies Views Activity
General · by Hanns Mattes, 6 days ago
0 89 6 days ago
General · by Dima, 1 week ago
1 116 1 week ago
General · by pamtbaau, 2 weeks ago
0 188 2 weeks ago
General · by lynbor, 2 months ago
5 698 4 weeks ago
General · by Andy Miller, 1 month ago
0 419 1 month ago