Okay
  Public Ticket #3517491
Animated SVG logo
Closed

Comments

  •  2
    sramzee started the conversation

    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? 

  •  8,839
    Tahir replied

    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 

  •  2
    sramzee replied

    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. 

  •  2
    sramzee replied

    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

  •  8,839
    Tahir replied

    Hey Again,

    You will have to override the "nectar_logo_output" function via a child theme "functions.php" file . See screenshots: 

    7033493819.png

    Thanks.


    ThemeNectar Support Team 

  •  2
    sramzee replied

    Do you think this functionality will make it into the next update? I really dont know what im doing with PHP.

  •  8,839
    Tahir replied

    Hey Again,

    Escalating this to the developer for further response.

    Thanks.


    ThemeNectar Support Team 

  •  1,070
    ThemeNectar replied

    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.