Jump to content

Two separate links for the 'Back to Store' text

Recommended Posts

Site URL: https://joeredski.com/

Hi there, please can you help.
 
Currently, I have two stores. One store for my 'Prints' and another main store for everything else.
When I click from the store onto a product page such as 'Presets' and then click on the 'back to store' link at the top, it goes back to the storefront, which is what I wanted.
However, when I go onto my 'Prints' store page ( which is the second store page) and click on a print, the 'back to prints' link at the top also takes me back to the storefront. However, I want this link to only go to the 'Prints' main page, not the storefront.
Therefore I would have two seperate links at the top of each respective store.
 
Please can you tell me how I would achieve this?
 
Thank you.
Edited by Redski
spelling mistake
Link to comment

Hi,

Add this to Prints Page Header

<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','/prints');
});
</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
On 5/16/2022 at 8:41 PM, Redski said:

Sorry for the delay in getting back to you. Thank you so much for your help.

Unfortunately it hasn't worked. It still goes to the Storefront.

Do I need to wait a short time for it to update?

Thanks.

 

change this to new url

/prints

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

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.