Jump to content

Adding navigation links on product page

Recommended Posts

Posted

Site URL: https://www.anjart.co.uk/shop/p/cookie-greetings-card

Is there a way to add a navigation link to my product pages? 

For example, if a customer clicks on my shop and then selects the "cards" tab and then clicks on a card product, the navigation links only show Shop > Product name. I would like to make it easier for them to go back to the "cards" tab, rather than the entire shop and have to go through the whole process again. So it would read Shop > cards > product name.

Is this possible?

  • Replies 7
  • Views 1k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted

Site URL: https://www.anjart.co.uk/shop/p/cookie-greetings-card

Is there a way to add a navigation link to my product pages? 

For example, if a customer clicks on my shop and then selects the "cards" tab and then clicks on a card product, the navigation links only show Shop > Product name. I would like to make it easier for them to go back to the "cards" tab, rather than the entire shop and have to go through the whole process again. So it would read Shop > cards > product name.

Is this possible?

Posted

Hi @tuanphan

Thanks for your reply.

I’d greatly appreciate the code to add manually for each product. I presume each would still go in the custom css section?

many thanks!

Posted (edited)

While I have you here @tuanphan😁 Any chance you could give me a code to allow the image to show on mobile version for my pop up as per its layout (image to left, text to right)

thanks again!

Url - anjart.co.uk

Edited by AnjArt
Posted
On 4/30/2022 at 9:02 PM, AnjArt said:

Is there a way to add a navigation link to my product pages? 

On Squarespace 7.1 the built-in breadcrumbs are very limited, but it is possible with our Breadcrumbs extension:

 

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Posted
On 5/7/2022 at 3:19 AM, AnjArt said:

While I have you here @tuanphan😁 Any chance you could give me a code to allow the image to show on mobile version for my pop up as per its layout (image to left, text to right)

thanks again!

Url - anjart.co.uk

#1. First, add this 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() { 
		$('<nav class="ProductItem-nav tp-breadcrumb"><div class="ProductItem-nav-breadcrumb"><a href="/shop" class="ProductItem-nav-breadcrumb-link">Shop</a><span class="ProductItem-nav-breadcrumb-separator"></span><a href="/shop/category1" class="ProductItem-nav-breadcrumb-link">Enter Category Name here</a><span class="ProductItem-nav-breadcrumb-separator"></span><a href="/shop/p/sekhmet-lioness-original-painting" class="ProductItem-nav-breadcrumb-link">Sekhmet - Original Framed Lioness Painting</a></div></nav>').insertBefore('nav.ProductItem-nav');
	});
</script>
<style>
  nav.ProductItem-nav:not(.tp-breadcrumb) {
    display: none;
}
</style>

#2. Which image?

xyz.thumb.png.4ffa67cea258e91f499617c40cc57d9c.png

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

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.