Solved

Collection Title is centered on desktop but not mobile | Dawn

minoritywetrust
Excursionist
18 0 6

Screenshot 2024-03-20 at 1.40.13 AM.pngIMG_0061.PNG

 

 

Also would it be possible to center the "drop 1.2.3" text as well. 

Accepted Solution (1)

Dan-From-Ryviu
Shopify Partner
7711 1498 1503

This is an accepted solution.

Hi @minoritywetrust 

Please add this code to your theme.liquid file, after <head>, in Online Store > Themes > Edit code 

<style>
.collection-list .card__heading {
    text-align: center;
}
.section-collection-list .collection-list-wrapper .title-wrapper-with-link {
    justify-content: center !important;
}
</style>

- Helpful? Like or Accept solution! or Buy me a coffee
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look
- Enjoy 1 month of Shopify for $1. Sign up now

View solution in original post

Replies 7 (7)

dmwwebartisan
Shopify Partner
12308 2549 3702

@minoritywetrust 

Please share your store URL!

Thanks!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app
minoritywetrust
Excursionist
18 0 6

sahilsharma9515
Shopify Partner
976 122 183

Hi @minoritywetrust Please add the code in your theme.css/base.css/style.css file which is available in your theme.

 

.title-wrapper-with-link.title-wrapper--self-padded-tablet-down.title-wrapper--no-top-margin {
    justify-content: center !important;
}

 

If you are not sure where is your theme.css/base.css/index.css/style.css file please follow the steps:

  1. Login in shopify admin.
  2. Click on the Online Store.
  3. Then click on the button next to Customize in live Theme.
  4. Click Edit Code.
  5. Search theme.css/base.css/index.css/style.css in the code in left hand side which ever is available in your theme.
  6. You can add the above code at the bottom of the file.

Result:

sahilsharma9515_0-1710915704741.png

 

Regarding Changing the Text: You can change the text by editing it through the collection as it seems like you have attached your collections in this section and the text is rendering from there.

 

If you will unable to implement the same then I'm happy to do this for you, let me know. I can implement the code changes so that this will work well for you.

 

Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

 

Best Regards

Sahil

- Your

 Coffee Tip 

can create magic in coding ❤️❤️

- Need a Shopify Developer? CHAT ON WHATSAPP or EMAIL ME !


- Hopefully the solution will help you. If yes then Please hit

 Like 

and

 Mark it as solution! ❤️


Dan-From-Ryviu
Shopify Partner
7711 1498 1503

This is an accepted solution.

Hi @minoritywetrust 

Please add this code to your theme.liquid file, after <head>, in Online Store > Themes > Edit code 

<style>
.collection-list .card__heading {
    text-align: center;
}
.section-collection-list .collection-list-wrapper .title-wrapper-with-link {
    justify-content: center !important;
}
</style>

- Helpful? Like or Accept solution! or Buy me a coffee
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look
- Enjoy 1 month of Shopify for $1. Sign up now

minoritywetrust
Excursionist
18 0 6

thank you kindly. 

Dan-From-Ryviu
Shopify Partner
7711 1498 1503

Very welcome!

- Helpful? Like or Accept solution! or Buy me a coffee
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look
- Enjoy 1 month of Shopify for $1. Sign up now

techlyser_web
Shopify Partner
1483 274 293

Hello @minoritywetrust 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
@media screen and (min-width:767px){
  .title-wrapper-with-link {
     justify-content: center !important;
     align-items: center !important;
  }
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Techlyser || Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com