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.
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Solved by pamtbaau View 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
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.
@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.
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 2 | 70 | 5 hours ago | ||
| 1 | 45 | 9 hours ago | ||
| 0 | 43 | 22 hours ago | ||
| 6 | 341 | 4 days ago | ||
| 3 | 35 | 5 days ago |