The customer we are working with have asked for their logo to be animated in the main logo position in the header. My question is how can i add a Lottie file or .json to the logo position to make this work?
Thanks so much for such a speedy reply. After looking into global sections im not sure thats the right solution. Could you tell me how what i would need to change in header.php to make this work.
We have looked at header.php and cannot see how any logo is actually included apart from a fav icon. Please can you tell us where we add a div or img tag to swap the logo for an animated SVG
Adding the ability to specify a Lottie element as the logo is not currently a scheduled feature and would require custom modifications through a child theme, specifically by overriding the 'nectar_logo_output' function that Tahir pointed out. However, I've noted the idea on the wishlist.
The customer we are working with have asked for their logo to be animated in the main logo position in the header. My question is how can i add a Lottie file or .json to the logo position to make this work?
Hey Again,
This would require customizing the "header.php" file via a child theme to use the svg or lottie shortcode available in the Page Builder .
Another Option would be to use the Global Section: Please view https://themenectar.com/docs/salient/page-builder-global-sections/ .
Thanks.
ThemeNectar Support Team
Thanks so much for such a speedy reply. After looking into global sections im not sure thats the right solution. Could you tell me how what i would need to change in header.php to make this work.
Thanks again.
We have looked at header.php and cannot see how any logo is actually included apart from a fav icon. Please can you tell us where we add a div or img tag to swap the logo for an animated SVG
Hey Again,
You will have to override the "nectar_logo_output" function via a child theme "functions.php" file . See screenshots:
Thanks.
ThemeNectar Support Team
Do you think this functionality will make it into the next update? I really dont know what im doing with PHP.
Hey Again,
Escalating this to the developer for further response.
Thanks.
ThemeNectar Support Team
Hey Sramzee,
Adding the ability to specify a Lottie element as the logo is not currently a scheduled feature and would require custom modifications through a child theme, specifically by overriding the 'nectar_logo_output' function that Tahir pointed out. However, I've noted the idea on the wishlist.
Kind regards.