LizRussell Posted September 8, 2022 Share Posted September 8, 2022 Hi there! I'm transitioning my site from 7.0 to 7.1 manually and have just learned about the new Post Blog Item Code Injection option in the settings of a Blog. I've used code injection in other areas for other reasons and would like to put this to use to add a newsletter sign ups to the bottom of every Blog Post included in this blog. Has anyone done this and would they be willing to share the code they used? Thank you so much! Link to comment
Beyondspace Posted September 8, 2022 Share Posted September 8, 2022 1 hour ago, LizRussell said: Hi there! I'm transitioning my site from 7.0 to 7.1 manually and have just learned about the new Post Blog Item Code Injection option in the settings of a Blog. I've used code injection in other areas for other reasons and would like to put this to use to add a newsletter sign ups to the bottom of every Blog Post included in this blog. Has anyone done this and would they be willing to share the code they used? Thank you so much! You can add your code on Home > Settings > Advanced > Code injection to run the code on all pages BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
sberens Posted September 17, 2022 Share Posted September 17, 2022 On 9/8/2022 at 7:08 AM, bangank36 said: You can add your code on Home > Settings > Advanced > Code injection to run the code on all pages The question is what is the code... Link to comment
Beyondspace Posted September 18, 2022 Share Posted September 18, 2022 (edited) 14 hours ago, sberens said: The question is what is the code... My idea is adding newsletters to footer and using some code to only show this block on blog page Edited September 18, 2022 by bangank36 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
tuanphan Posted September 20, 2022 Share Posted September 20, 2022 On 9/8/2022 at 8:00 PM, LizRussell said: Hi there! I'm transitioning my site from 7.0 to 7.1 manually and have just learned about the new Post Blog Item Code Injection option in the settings of a Blog. I've used code injection in other areas for other reasons and would like to put this to use to add a newsletter sign ups to the bottom of every Blog Post included in this blog. Has anyone done this and would they be willing to share the code they used? Thank you so much! You can use approach @ bangank36 posted above. You can add it first, then we can move it from footer to blog post or you can use a 3rd party plugin (I used plugin to solve similar case. Our approach is add a new page on Not Linked > Add Newsletter Block > Then use plugin to make it appear on Blog Post Only > Then use code to move Newsletter position). If you are interested this option, I will give the plugin link. 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!) 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