jrskybulb Posted October 5 Posted October 5 Site URL: https://www.jrskybulb.com/store/canvas-prints For my website, I am not using the root /store page as I wanted a custom page to introduce my store categories (/store-home). Then, all my products are in categories within the /store (for example /store/canvas-prints). What I need now is a way to put a link in the categories sidebar allowing going back to the /store-home page instead of the hidden /store page I don't use. Any solution to do that? In the example below, it would be ideal for me to have a link to my /store-home page just above the "Canvas prints" category in the sidebar. Hi! I'm JR Skybulb, a former physicist (one actually cannot stop being one...) and now recently a semi-professional photographer. Feel free to contact me and check out my Squarespace website here: https://www.jrskybulb.com.
tuanphan Posted October 7 Posted October 7 You mean add a text here with link to /store-home jrskybulb 1 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!)
jrskybulb Posted October 7 Author Posted October 7 Yes exactly ! Hi! I'm JR Skybulb, a former physicist (one actually cannot stop being one...) and now recently a semi-professional photographer. Feel free to contact me and check out my Squarespace website here: https://www.jrskybulb.com.
Solution tuanphan Posted October 8 Solution Posted October 8 You can use this code to Website Tools > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <script> $(document).ready(function(){ $('<li class="category-item"><a href="/store-home" class="category-link">Store Home</a></li>').insertBefore('.nested-category-tree-wrapper>ul>li:first-child'); }); </script> jrskybulb 1 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!)
jrskybulb Posted October 8 Author Posted October 8 Thank you so much, works perfect ! Hi! I'm JR Skybulb, a former physicist (one actually cannot stop being one...) and now recently a semi-professional photographer. Feel free to contact me and check out my Squarespace website here: https://www.jrskybulb.com.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment