Archived topic
sticky navigation different logo
8 replies · Started by Roberto on June 2, 2017
Hello!
so i was trying to make the logo in the sticky navigation different from the main navigation so when you scroll down the logo transform to a different one,is there a way to make it?
Thanks!
site:www.servidorpruebasrobertogarcia.online
Also,the logo gets blurried when i scroll,but i dont know why
Hi there,
Try this: https://generatepress.com/forums/topic/change-logo-media-source-file-when-sticky/#post-304545
Also the logo image doesn't look blurry to me.
Let me know
Maybe here you can see what i mean,when i adjust the height the logo gets blurried
That's your browser rendering the image resizing.
Try using an SVG (vector file) instead of an image, there's a plugin to allow SVG uploading in WP:
https://wordpress.org/plugins/svg-support/
GP doesn't seem to allow setting the main logo in the SVG format but it works for nav and sticky logos.
Important: Make sure to only allow Administrators to upload SVG files because they CAN be used for XSS attacks, since SVG is not an image but a document file type that allows embedding scripts. However, the plugin takes this into consideration and hence allows for the role restrictions.
More info here: https://docs.generatepress.com/article/adding-svg-logo/
thank you very much guys!
Glad we could help!