Jump to content

Back to products on product page

Recommended Posts

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
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

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, Keyword Highlighter
If 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.