Reposition breadcrumbs Dawn theme

Solved

Reposition breadcrumbs Dawn theme

INFRA
Shopify Partner
238 2 84

Hi!

 

On dawn theme, I would like to have the breadcrumbs sitting right above the product image. And also not showing any white on either sides (see image below). How do I best achieve this?

 

Website

password: waiheke

 

Thanks so much!

Screenshot 2025-04-16 at 10.45.39.png

Accepted Solution (1)
MR115_ShopiDevs
Shopify Partner
17 3 1

This is an accepted solution.

You can keep your code, but you need change the code position.
You can set the code above the image gallery.
Please follow the screenshot

Breadcrumbs-code.png

Breadcrumbs-output.png

EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery and more.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.

View solution in original post

Replies 10 (10)

Superscapesjr
New Member
4 0 0

Do you want a quick fix?

Super

MR115_ShopiDevs
Shopify Partner
17 3 1

To set, Breadcrumbs are right above the product image in the shopify product page Please follow the steps
1. Go to your Shopify admin > Online Store > Themes > Edit code.
2. Open the file: sections > main-product.liquid
3. Paste the following code above the image gallery .

{%- render 'top-breadcrumbs' -%}


4. In the left sidebar, click Snippets > Add a new snippet .Then name it: top-breadcrumbs.liquid
5. Paste the following code inside top-breadcrumbs.liquid file

<nav class="breadcrumbs">
  <a href="{{ routes.root_url }}" title="Home">Home</a>
  {% if collection %}
    <a href="{{ collection.url }}" title="{{ collection.title }}">{{ collection.title }}</a>
  {% endif %}
  <span>{{ product.title }}</span>
</nav>

<style>
  .breadcrumbs {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .breadcrumbs a {
    color: #000000;
    text-decoration: none;
  }

  .breadcrumbs a:hover {
    text-decoration: underline;
  }
</style>

 

EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery and more.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
INFRA
Shopify Partner
238 2 84

Hey, thanks for your reply! This code does not change the vertical position, it actually pushes it all the way to the left. Is there anything else I can try?

 

I'm using this code:

{% if template == 'product' %}
  {% assign current_collection = product.collections.first %}
  {% if current_collection %}
    <div class="page-width">
    <nav class="breadcrumb" role="navigation" aria-label="breadcrumbs">
      <a href="/" title="Home">Home</a>
      <span aria-hidden="true">›</span>
      <a href="{{ current_collection.url }}" title="{{ current_collection.title }}">{{ current_collection.title }}</a>
      <span aria-hidden="true">›</span>
      <span>{{ product.title }}</span>
    </nav>
    </div>
  {% endif %}
{% endif %}

 

.breadcrumb {
  font-size: 14px;

  background-color: #F7F7F7;
   
}
.breadcrumb a {
  color: #000;
  text-decoration: none;
}
.breadcrumb span {
  margin: 0 5px;
}
MR115_ShopiDevs
Shopify Partner
17 3 1

This is an accepted solution.

You can keep your code, but you need change the code position.
You can set the code above the image gallery.
Please follow the screenshot

Breadcrumbs-code.png

Breadcrumbs-output.png

EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery and more.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
INFRA
Shopify Partner
238 2 84

amazing, thank you so much!

INFRA
Shopify Partner
238 2 84

@MR115_ShopiDevs 

 

On my collection page I still have a white bar on either side, how can I edit my code to change this? 

Screenshot 2025-04-16 at 19.23.13.png

<div class="page-width">
  <nav class="breadcrumb" role="navigation" aria-label="breadcrumbs">
    <a href="/" title="Home">Home</a>
    {% if template contains 'collection' %}
      <span aria-hidden="true">›</span>
      <span>{{ collection.title }}</span>
    {% endif %}
  </nav>
</div>

 

mageplaza-cs
Shopify Partner
474 39 77

Hi @INFRA 

I am from Mageplaza - Shopify solution expert.

It seems that this issue has been resolved. However, the breadcrumbs appear too close to the left margin. You can add the following CSS code to your base.css file to improve its appearance.

.breadcrumb {
    padding: 0 16px;
}

Please let me know if it works as expected!

Best regards!

Mageplaza | Top-Rated Shopify Agency | Trusted by 230,000+ worldwide merchants


If our suggestion works for you, please give it a Like or mark it as a Solution!


Should you have any questions or concerns, feel free to contact us via consultant@mageplaza.com

INFRA
Shopify Partner
238 2 84

Hey there, it has not been resolved yet, I want the breadcrumbs about 20px above the product image. It is too far up at the moment. Can you recommend a code for this?

mageplaza-cs
Shopify Partner
474 39 77

@INFRA 

It's simple, just add the following code to solve this issue (file base.css )

.breadcrumb {
    position: absolute;
}
product-info {
    padding-top: 40px !important;
}

*Result:

2025-04-16_11-43.png2025-04-16_11-43_1.png

Mageplaza | Top-Rated Shopify Agency | Trusted by 230,000+ worldwide merchants


If our suggestion works for you, please give it a Like or mark it as a Solution!


Should you have any questions or concerns, feel free to contact us via consultant@mageplaza.com

Moeed
Shopify Partner
7379 1996 2438

Hey @INFRA 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
nav.breadcrumb {
    position: absolute !important;
    left: 24% !important;
}
</style>

RESULT:

Moeed_0-1744777623829.png

 

If I managed to solve your problem then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications