andymallinsphotography Posted January 29, 2022 Share Posted January 29, 2022 Site URL: https://andymallinsphotography.com Hi, Is it possible to inject Javascript on the cart page, currently I can do this on all my pages using the page header code injection for my Trustpilot widget but as the cart page is not static I have no such option. Thanks, Andy Link to comment
Solution paul2009 Posted January 29, 2022 Solution Share Posted January 29, 2022 2 minutes ago, andymallinsphotography said: Is it possible to inject Javascript on the cart page, currently I can do this on all my pages using the page header code injection for my Trustpilot widget Instead of injecting code on each page individually, you can inject it to all pages via the site code injection panel in Settings > Advanced > Code Injection. This will include the cart page. andymallinsphotography 1 About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
andymallinsphotography Posted January 29, 2022 Author Share Posted January 29, 2022 9 minutes ago, paul2009 said: Instead of injecting code on each page individually, you can inject it to all pages via the site code injection panel in Settings > Advanced > Code Injection. This will include the cart page. thank you! that sorted it, no idea why I hadn't thought of this as using it for other code! Thanks again, I've also got another question around resizing the cart view on mobile, any help on that one to would be greatly appreciated! Thanks again. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment