SVG logo – not displaying at all #871
Unanswered
wfx-mainhub-link
asked this question in
2 - Q&A / Support
Replies: 2 comments 1 reply
-
|
I just tried it and it doesn't work for me either. I tried to put one of my SVG social icons as the site_logo and no joy. A png works fine. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Could you show me the SVGs that don't work? It doesn't look like the logo is "equipped" to handle SVG because it doesn't know its box size when in SVG. This might be solvable via CSS (give it a height and width). But the whole code at that location looks very, ehm, antiquated. I assume you tested these points:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Upon consulting with the documentation:
https://github.com/theNewDynamic/gohugo-theme-ananke?tab=readme-ov-file#logo
I cannot get an SVG logo to display in the header/nav in place of the site title. A PNG works fine, but when I attempt to load an SVG, it simply displays nothing, including the removal of the site name that's typically there by default. After inspecting the HTML page, there is also no reference to the file, as there is when the PNG version is present.
I've placed my image in /static/images/ (also tried just the root /static/ directory).
My hugo.toml includes:
Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions