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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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

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.