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

Changing the URL of "Back to Shop" link on product page

Question

Site URL: http://www.manifestphoto.com

By default product pages have a "back to shop" link on them, but instead of going back to the sales page I have built (where I have products listed using summary blocks), it goes back to the source product list that I am drawing products from.  I was able to hid the "back to shop link" using the following CSS:

.show-product-item-nav #productWrapper #productNav {
    display: none;
}

However I am wondering if there is a way to change the target instead of hiding it so that it will take people back to the page they came from?  This would be much better!  I would be find with either being able to specify the exact URL, or with simply making it behave like the browser's "back" button, since either one will put them back on the sales page.  

My store page is: https://manifestphoto.com/pandemic-art-sale
I'm on the Bedford template. 

I am hoping @tuanphan or another expert can help me.

Thank you so much!!

Share this post


Link to post

6 answers to this question

Recommended Posts

  • 0
10 hours ago, StephanieH said:

Not an answer, but I would also like to change the "Back to Shop" link on my site. Maybe you can see it here: https://www.meraki-m.com/shop/super-m

I'd like for it to link to this page (https://www.meraki-m.com/buy) instead of this one (https://www.meraki-m.com/shop)

 

Add to Home > Settings > Advanced > Code Injection > Footer

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

replace beaver with your page url


You can send your question to my email to get faster answer. I provide free priority support in this crazy time. 

How to Setup Password & Share URL - Free Templates - Free Code - CSS ID List

Share this post


Link to post
  • 0
On 5/20/2020 at 1:11 AM, tuanphan said:

I don't see back to shop, can you take a screenshot & share link to exact page?

 

Ah, sorry - you don't see it because I hid it with this code:

.show-product-item-nav #productWrapper #productNav {
    display: none;
}

If I remove that code and use the same footer code injection you mentioned above will it work on my site? 
Thank you!

Share this post


Link to post
  • 0
On 5/26/2020 at 10:38 AM, PeterCBlanchard said:

Ah, sorry - you don't see it because I hid it with this code:


.show-product-item-nav #productWrapper #productNav {
    display: none;
}

If I remove that code and use the same footer code injection you mentioned above will it work on my site? 
Thank you!

Where is your site url? Each site needs different code.


You can send your question to my email to get faster answer. I provide free priority support in this crazy time. 

How to Setup Password & Share URL - Free Templates - Free Code - CSS ID List

Share this post


Link to post

Create an account or sign in to comment

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


×
×
  • Create New...