How can I change breadcrumb color to black in my coding?

Hey everyone,

How to I change the colour of the breadcrumb to black?

Its currently blue

Store: https://meeko-8476.myshopify.com

Password: Meeko

This is my breadcrumb coding below if it helps

.breadcrumbs { margin: 0 0 2em; } .breadcrumbs__list { list-style-type: none; margin: 0; padding: 0; } .breadcrumbs__item { display: inline-block; } .breadcrumbs__item:not(:last-child):after { border-style: solid; border-width: .10em .10em 0 0; content: ''; display: inline-block; height: .20em; margin: 0 .20em; position: relative; transform: rotate(45deg); vertical-align: middle; width: .20em; } .pd_20 { padding-top: 15px; } .breadcrumbs__link { text-decoration: underline; } .breadcrumbs__link[aria-current="page"] { color: inherit; font-weight: normal; text-decoration: none; } .breadcrumbs__link[aria-current="page"]:hover, .breadcrumbs__link[aria-current="page"]:focus { text-decoration: underline; } .breadcrumbs__link_1 { padding-left: 10px; } .breadcrumbs__item.breadcrumbs__link_n a { padding-left: 10px; }

{%- unless template == ‘index’ or template == ‘cart’ or template == ‘list-collections’ or template == ‘404’ -%}
{%- assign t = template | split: ‘.’ | first -%}

  1. Home
  2. {%- case t -%} {%- when 'page' -%}
  3. {{ page.title }}
  4. {%- when 'product' -%} {%- unless collection -%} {%- assign p = all_products[product.handle] -%} {%- assign collection = p.collections | first -%} {%- endunless -%} {%- if collection.url -%}
  5. {{ collection.title | link_to: collection.url }}
  6. {%- endif -%}

    {%- when ‘collection’ and collection.handle -%}
    {%- if current_tags -%}

  7. {{ collection.title | link_to: collection.url }}
  8. {%- capture tag_url -%}{{ collection.url }}/{{ current_tags | join: "+"}}{%- endcapture -%} {{ current_tags | join: " + "}}
  9. {%- else -%}
  10. {{ collection.title }}
  11. {%- endif -%} {%- when 'blog' -%} {%- if current_tags -%}
  12. {{ blog.title | link_to: blog.url }}
  13. {%- capture tag_url -%}{{blog.url}}/tagged/{{ current_tags | join: "+" }}{%- endcapture -%} {{ current_tags | join: " + " }}
  14. {%- else -%}
  15. {{ blog.title }}
  16. {%- endif -%} {%- when 'article' -%}
  17. {{ blog.title | link_to: blog.url }}
  18. {{ article.title }}
  19. {%- else -%}
  20. {{ page_title }}
  21. {%- endcase -%}
{%- endunless -%}
.breadcrumbs__item.breadcrumbs__link_n a{
color:#000;
}

Hi @Simonsron

Thank you, where do I place this code?

Put under the style tag

Hi @Simonsron

Unfortunately that didn’t work.

Please see below:

This is the code I added:

.breadcrumbs__item.breadcrumbs__link_n a{ color:#000000; } .breadcrumbs { margin: 0 0 2em; }

the last one is black.If you want it all to be black, change the code to the following

.breadcrumbs__item a{
color:#000000;
}
1 Like

@Simonsron

This worked!!

Thank you so much.

I hope you have a great day :slightly_smiling_face: