Center Collection List Header- Ride Theme

Center Collection List Header- Ride Theme

LAL
Excursionist
12 0 6

can someone please help me center the collection list titles on top of the section.  thank you.  Screenshot 2025-04-17 204623.png 

 

 

https://3ubymh-9u.myshopify.com/password

 

test123

Replies 7 (7)

tim
Shopify Partner
4539 546 1658

Add this code to the sections "Custom CSS" setting:

.title-wrapper-with-link {
  justify-content: center;
}
If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
LAL
Excursionist
12 0 6

Thank you so much! it worked. any way you can help me with  centering the logo on mobile only?  icons may need to be moved. thank you!!

tim
Shopify Partner
4539 546 1658

Undo whatever "Custom CSS" you have in header section (also padding on header elements) and add this instead:

@media (max-width: 749px) {
  .header-wrapper .header {
    grid-template-columns: 6rem auto 6rem;
    padding:0 1.5rem;
  }
  .header__icons {
    padding-right: 0;
  }
}

There is also a bunch of header-related CSS added into layouts/theme.liquid above </html> -- it should also be deleted.

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
LAL
Excursionist
12 0 6

not sure which css codes I should delete in theme.liquid could you point them out? thank you. the problem I am having is the codes  mentioned above work to center everything but then the screen wiggles from side to side afterwards. scroll bar appears at the bottom. ???  

tim
Shopify Partner
4539 546 1658

This is not needed:

<style>
  @media (max-width: 749px) {
    .header-wrapper .header {
      grid-template-columns: 1fr auto 1fr;
    }

    .header__heading-logo {
      transform: scale(1.1);
      margin-left: 1.2rem;
    }
  }

  .header__icon span {
    margin-left: 1.2rem;
  }

  .header__search {
    margin-right: -1.2rem;
  }

  .header__icon--cart {
    margin-right: -1rem !important;
    /*it was 0 */
  }

  header.header.header--top-center.header--mobile-center.page-width.header--has-menu.header--has-account {
    margin: 0rem;
    max-width: 100%;
    padding: 0.9rem;
  }
</style>
If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
LAL
Excursionist
12 0 6

I had removed everything and only used your code and it didn't look right the logo was very small, I tweaked a few codes together and finally found something that works for me. Thank you.

DaisyVo
Shopify Partner
4447 495 590

Hi @LAL 

You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file

 

@media (max-width: 749px) {
    header.header.header--top-center.header--mobile-center.page-width.drawer-menu.header--has-menu.header--has-account {
    padding-right: 0 !important;
}
}

 

Result 

DaisyVo_0-1744950012333.png

 

Best,

DaisyVo

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution