Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Two separate links for the 'Back to Store' text


Redski

Question

Posted (edited)

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

5 answers to this question

Recommended Posts

  • 0

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 0

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.

 

Link to comment
  • 0
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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 0

Misread the question. Try this new code

<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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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