Guest Posted December 17, 2020 Share Posted December 17, 2020 Site URL: https://www.hempconnect.co.nz/shop Hi everyone, We're trying to add a text block on our shop page between the header and footer. I've attached a photo so you can see where we're talking about, is this possible? Any help would be greatly appreciated. Link to comment
creedon Posted December 17, 2020 Share Posted December 17, 2020 SS doesn't allow you to insert a normal text block on a Store page on v7.0. However with some Javascript and CSS it shouldn't be to hard to accomplish what you want. Can you tell us more about the text you want to add? Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
Guest Posted December 17, 2020 Share Posted December 17, 2020 2 minutes ago, creedon said: SS doesn't allow you to insert a normal text block on a Store page on v7.0. However with some Javascript and CSS it shouldn't be to hard to accomplish what you want. Can you tell us more about the text you want to add? Hi there, Thanks a lot for your fast reply! Appreciate it, We're just trying to add some general information about our products on this page. Probably around 250 words? Would this be possible, above the footer i guess in between the footer and product section? Thanks again, Nicholas Link to comment
creedon Posted December 17, 2020 Share Posted December 17, 2020 Add the following to Settings > Advanced > Code Injection > HEADER. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> Add the following to Settings > Advanced > Code Injection > FOOTER. <script> $( ( ) => { /* if the message has single quotes in it then put a backslash before the single quotes. example: it's becomes it\'s. */ let message = 'enter your message here'; // do not change anything below, there be the borg here $( '<div>' + message + '</div>' ).insertAfter ( '.ProductList' ); } ); </script> This is for a v7.0 site using a Brine family template. Let us know how it goes. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
Guest Posted December 17, 2020 Share Posted December 17, 2020 Thank you very much! This worked very well. Appreciate the help and the speed of this fix! Thank you thank you Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.