Jump to content

Customize the "back to" text and link on a product page

Recommended Posts

Site URL: https://www.gesamtkunstwerkshop.com/astro-ranch-list/z4md0ikgjrul6sfyz1glw6v3o88ia8

Hi! I'm wondering how to customize the "Back to" text on an individual product page. I'm using the Wells template.

I've set up my web store as a summary because I like the layout better. However, if you click into a product it goes back to the list page it belongs to, and not the product page.

My product page and where I would like the "back to" text to redirect is https://www.gesamtkunstwerkshop.com/astro-ranch

Thanks in advance for your help!

Screen Shot 2021-04-28 at 11.15.05 PM.png

Link to comment
  • Replies 3
  • Views 995
  • Created
  • Last Reply
On 4/29/2021 at 11:18 AM, wet_cat said:

Site URL: https://www.gesamtkunstwerkshop.com/astro-ranch-list/z4md0ikgjrul6sfyz1glw6v3o88ia8

Hi! I'm wondering how to customize the "Back to" text on an individual product page. I'm using the Wells template.

I've set up my web store as a summary because I like the layout better. However, if you click into a product it goes back to the list page it belongs to, and not the product page.

My product page and where I would like the "back to" text to redirect is https://www.gesamtkunstwerkshop.com/astro-ranch

Thanks in advance for your help!

Add to Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$('div#productNav a').attr('href','https://google.com');
});
</script>

 

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

Link to comment
  • 4 weeks later...
On 5/26/2021 at 11:38 PM, behns13 said:

This has been helpful to me as well!  Thank you @tuanphan.

I do have a small question, which part of the script should be changed to adjust the text?

Each page will need a different code to change text. Can you share link to a product on your site?

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

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.