Archived topic
in sticky header
5 replies · Started by René on March 22, 2023
Hello, how can I display an SVG logo (<svg>) in the sticky header? I can only set a .svg file as via the customizer, but I need to use css to change the color of the font when the menu is expanded.
I already found this post but this hook doesn't work in the sticky menu.
https://generatepress.com/forums/topic/svg-logo-the-up-to-date-how-to/
Hi there,
Not sure if I fully understand.
Are you trying to modify the output of the sticky navigation logo uploaded in the customizer?
Let me know :)
in the customizer I can't specify an inline svg, only a .svg file in the img tag. Unfortunately, I cannot edit the CSS classes in the individual svg paths. so I need a hook or something, just like the normal menu
Hi Rene,
Can you try Tom's suggestion here?: https://generatepress.com/forums/topic/filter-title-to-use-svg-inline-to-replace-logo-title/page/2/#post-1592424
Adding PHP: https://docs.generatepress.com/article/adding-php/#code-snippets
Thanks very much! That's what I was looking for :)
BTW: I forgot the "logo" in the thread title. If you want add it, the thread might be easier to find.
You're welcome Rene! :)