How can align the breadcrumbs with the beginning of page width?

Solved

How can align the breadcrumbs with the beginning of page width?

kingdom2
Excursionist
25 0 7

Hi guys!

How can I align the breadcrumbs with the beginning of the page width?

Thanks!

 

Page: https://kingdompetshop.com/collections/dog-collars-leashes

Theme: Refresh

Pw: abcd

kingdom2_0-1725818910182.png

 

Accepted Solution (1)

Sweans
Shopify Partner
406 79 123

This is an accepted solution.

Hi @kingdom2,

 

You can make this change with a simple line of css.

 

.breadcrumb{
    width: var(--page-width);
    margin: 0 auto;
    padding-left: 5rem;
    padding-right: 5rem;
}
@media only screen and ( max-width: 889px) {
    width: var(--page-width);
    margin: 0 auto;
    padding-left: 3rem;
    padding-right: 5rem;
}

 

Paste this code to your base.css

 

Go to your online store> themes > Click on three dots of current active theme > edit code > search base.css in the left sidebar > open it and paste the code.

 

I hope this helps! If it does, please like it and mark it as a solution! 

If you need further assistance, feel free to reach out!

 

Regards,

Sweans

- Was my reply helpful? Please Like and Accept the Solution or let me know by Buying me coffee!
- Want to modify or custom changes on store Hire me.
- Feel free to contact me at [email protected] regarding any help.
- To know more about me check out www.sweans.com

View solution in original post

Replies 5 (5)

Made4uo-Ribe
Shopify Partner
8230 1975 2419

Hi @kingdom2 

Do you have other URL? Or you can also share the preview. 

Made4uoRibe_0-1725821176743.png

Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
kingdom2
Excursionist
25 0 7
Made4uo-Ribe
Shopify Partner
8230 1975 2419

Thanks for the info, check this one. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

nav.breadcrumb {
   margin-left: 13rem;
}
@media only screen and (max-width: 989px){
   nav.breadcrumb {
   margin-left: 7rem;
}
}
@media only screen and (max-width: 769px){
   nav.breadcrumb {
   margin-left: 3rem;
}
}

 

And Sve. 

result:

Made4uoRibe_0-1725826973058.png

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

Sweans
Shopify Partner
406 79 123

This is an accepted solution.

Hi @kingdom2,

 

You can make this change with a simple line of css.

 

.breadcrumb{
    width: var(--page-width);
    margin: 0 auto;
    padding-left: 5rem;
    padding-right: 5rem;
}
@media only screen and ( max-width: 889px) {
    width: var(--page-width);
    margin: 0 auto;
    padding-left: 3rem;
    padding-right: 5rem;
}

 

Paste this code to your base.css

 

Go to your online store> themes > Click on three dots of current active theme > edit code > search base.css in the left sidebar > open it and paste the code.

 

I hope this helps! If it does, please like it and mark it as a solution! 

If you need further assistance, feel free to reach out!

 

Regards,

Sweans

- Was my reply helpful? Please Like and Accept the Solution or let me know by Buying me coffee!
- Want to modify or custom changes on store Hire me.
- Feel free to contact me at [email protected] regarding any help.
- To know more about me check out www.sweans.com

kingdom2
Excursionist
25 0 7

Thanks @Sweans !