marnispicer Posted February 15, 2022 Share Posted February 15, 2022 Site URL: http://www.midlifecoaching.co Hi there. I am designing my own product page by adding products onto a new page that is titled - cost to you. There is no problem with adding products/services but when you click on a product it takes you to that product/service page. At the top of that page there is a <back to products> button which will take you to the products page that shouldn't be linked. (Not sure why that is even happening). I would like it to go back to the <cost to you> page. I would also like to know if I can disable the button feature of the product from the <cost to you> page. I don't want it to go to a product feature page, so to speak. Thank you 🙂 Link to comment
Beyondspace Posted February 15, 2022 Share Posted February 15, 2022 26 minutes ago, marnispicer said: Site URL: http://www.midlifecoaching.co Hi there. I am designing my own product page by adding products onto a new page that is titled - cost to you. There is no problem with adding products/services but when you click on a product it takes you to that product/service page. At the top of that page there is a <back to products> button which will take you to the products page that shouldn't be linked. (Not sure why that is even happening). I would like it to go back to the <cost to you> page. I would also like to know if I can disable the button feature of the product from the <cost to you> page. I don't want it to go to a product feature page, so to speak. Thank you 🙂 Try adding to Home > Settings > Advanced > Code injection <script> (function(){ window.addEventListener('DOMContentLoaded', () => { if(document.querySelector('#productNav a')) { document.querySelector('#productNav a').setAttribute('href','/cost-to-you-1') } }); })(); </script> Let me know how it works on your site Support me by pressing 👍 if this useful for you tuanphan 1 Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you Link to comment
marnispicer Posted February 15, 2022 Author Share Posted February 15, 2022 YES IT WORKS! Thank you LEGEND! I see you are helping many people out on this forum. What a wonderful human you are. Please let me know if there's anything I can do for you. 🙂 All the best Marni 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