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

"Back to shop" hyperlink - can I change it?


TonyAngel

Question

Site URL: https://tonyangelimages.com

I've recently spent a good deal of time restructuring my website, as I had a product/landing page with no buying options meaning that customers had to navigate to a standalone shop page which could then result in heavy scrolling. I partially address this by adding product categories but then saw I could utilise the description field under each product to provide as "buy now" link that went straight to the product in the shop. I've now updated all the product descriptions and this has allowed my to unlink the shop page and simplify navigation around the site for visitors.

I now have one issue I'd like to address. At the moment, if a customer adds an item to their cart they will see a back arrow for when they're finished. However, that arrow takes them to the whole of the shop (not good) rather than taking them to the previous page (preferred). Is there a way to change that link so it behaves like a normal "back" link, and also to remove the "... to shop" text so that it just says "Back"?

I've attached a photo which will hopefully clarify what I mean.

256803842_Nature-LeavesTonyAngelImages2021-01-1912-13-57.thumb.jpg.af1606a340f4f9a6f8d9f1b284106799.jpg

Link to post
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

Add this to Home > Settings > Advanced > Code Injection > Footer <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $(

Posted Images

2 answers to this question

Recommended Posts

  • 0

Add this 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');
  $("div#productNav a").html(function() { 
          return $(this).html().replace("Back to Shop", "Back");  
    });
});
</script>

Replace with your new url

Link to post
  • 0
On 1/20/2021 at 2:21 PM, tuanphan said:

Add this 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');
  $("div#productNav a").html(function() { 
          return $(this).html().replace("Back to Shop", "Back");  
    });
});
</script>

Replace with your new url

Wonderful, thank you!!!

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