Oz_Soma Posted February 18, 2022 Posted February 18, 2022 Site URL: https://www.somastudios.co/ Hi, I am trying to use Lottie files on my Squarespace. Do I need to upgrade my account to add a code injection to do this or can I do it with a standard account? If possible, how can I add a Lottie animation (.json or otherwise) to my header logo animation? Thanks! SquareRefresh 1
SquareRefresh Posted February 18, 2022 Posted February 18, 2022 3 hours ago, Oz_Soma said: Do I need to upgrade my account to add a code injection to do this or can I do it with a standard account? Hey @Oz_Soma Your Squarespace plan should be Business or any Commerce plans for using Code Injection. 3 hours ago, Oz_Soma said: If possible, how can I add a Lottie animation (.json or otherwise) to my header logo animation? Squarespace allow add only image file for the logo with regular image formats. So You can't add any custom file through admin panel but You can use custom JS coding for changing default logo to the Lottie animation. SquareRefresh, premium plugins & templates that have an elevated feel. Plugins: Have your site stand out. Templates: Our templates are designed with versatility in mind.Get Freebies: Sometimes things in life are free. Browser our hand selected free plugins.
Oz_Soma Posted February 18, 2022 Author Posted February 18, 2022 Thanks for the reply SquareRefresh. Do you have any information about how to do this in JS? I think I will upgrade my account and give it a try if it’s not too difficult. Thanks Oz
Oz_Soma Posted February 20, 2022 Author Posted February 20, 2022 (edited) If anyone can tell me how to put a Lottie animation in the header instead of the header logo that would be great, thanks! @tuanphan Edited February 21, 2022 by Oz_Soma
tuanphan Posted February 23, 2022 Posted February 23, 2022 On 2/21/2022 at 6:17 AM, Oz_Soma said: If anyone can tell me how to put a Lottie animation in the header instead of the header logo that would be great, thanks! @tuanphan Add it to Footer, then share url, we will give the code to move it to header Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Oz_Soma Posted February 24, 2022 Author Posted February 24, 2022 (edited) Hi @tuanphan ok, I have added it into my footer! https://www.somastudios.co/ Thanks Edited February 24, 2022 by Oz_Soma
tuanphan Posted February 27, 2022 Posted February 27, 2022 On 2/25/2022 at 6:46 AM, Oz_Soma said: Hi @tuanphan ok, I have added it into my footer! https://www.somastudios.co/ Thanks It looks like your lottie code block missing some closing tag. Can you post all code in Code Block? ------- Note for me: don't use it now Add this to Settings > Advanced > code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('div#block-yui_3_17_2_1_1645746278761_3758').appendTo('.header-title-logo a'); }); </script> <style> .header-title-logo img { display: none; } </style> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Oz_Soma Posted March 1, 2022 Author Posted March 1, 2022 Oh yes, sorry, it should be right now. Thanks!
tuanphan Posted March 3, 2022 Posted March 3, 2022 On 3/2/2022 at 6:58 AM, Oz_Soma said: Oh yes, sorry, it should be right now. Thanks! Add to Settings > Advanced > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('div#block-yui_3_17_2_1_1645746278761_3758').appendTo('.header-title-logo a'); }); </script> <style> .header-title-logo img { display: none; } </style> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Oz_Soma Posted March 5, 2022 Author Posted March 5, 2022 Thanks @tuanphan that worked! Doesn't work on mobile though unfortunately. Also is there a way to control the position? Now it's a bit lower than it was, maybe it just needs centralising so it moves up a bit? Thanks for you help!
tuanphan Posted March 6, 2022 Posted March 6, 2022 On 3/5/2022 at 12:35 PM, Oz_Soma said: Thanks @tuanphan that worked! Doesn't work on mobile though unfortunately. Also is there a way to control the position? Now it's a bit lower than it was, maybe it just needs centralising so it moves up a bit? Thanks for you help! I see it shows on mobile now? Did you solve it? Control position on desktop or? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Oz_Soma Posted March 8, 2022 Author Posted March 8, 2022 I think maybe it's working now. Something weird ws hapenning but I got a few people to try it and it seems to work. Thanks so much! Yes can I position it on desktop? It's not in line with the other text and icons, it needs to move up a bit.
Tuckers Posted January 5 Posted January 5 Has there been any updates since February 2022 on Lottie files? I can embed a Lottie file using the code block?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment