I’m sure either is fine, but I’m trying to understand grav best practices.
On one hand, themes makes the most sense because you are almost always going to have a theme head.html.twig template which will always reference the same icon files. But then, if you wanted to make changes, you’d have to go through the trouble over creating an overriding theme (mytheme) in order to override the theme’s images directory.
One the other hand, user/pages is where a user should put his content. Since these icons will be different for each site…it seems they could also go into there.
I would put it in themes folder because if you would change the theme you would also maybe change the icon if its not matching the style for example, different color or different icon.
It’s a stylistic part of the website, so the theme is the logical place for it. Pages is for content, and the favicon should always be declared in HTML meta, governed by the theme.
Hi, I have a similar issues while trying to simply use the antimatter theme. I want the site to use a favicon of mine. And i do not want to replace the one provided in themes/antimatter/images/ because I do not want to loose mine in case of a theme update.
Where shall I put mine for it to override the default one? But first is it feasible to override such an image?
I tried to put mine as
user/pages/images/favicon.png
users/config/themes/images/favicon.png
But none of these work… And I cannot find information about that in the tutorial…
Thanks for any hint!
Xavier
for antimatter, you have to put it inside user/themes/antimatter/images/ and you have to name it favicon.png (you will have to replace the existing one)
Implementing a new site, but this time with the Woo theme, I face the same difficulty again: how to override the default favicon but also the logo.png and footer_logo.png provided with the theme ?