Center aligning "Shop" title in mobile view

Solved

Center aligning "Shop" title in mobile view

JenniferF
Explorer
64 1 9

Hello everyone. I just updated my Dawn theme and noticed the "Shop" title is no longer centered when it is on mobile view. Does anyone know how to fix this? I did a search and found 2 codes, but neither worked. My URL is www.jennszencreations.com

Jennifer F
Accepted Solutions (3)

Made4uo-Ribe
Shopify Partner
10038 2387 3014

This is an accepted solution.

Hi @JenniferF 

Check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media only screen and (max-width:989px){
h2#SectionHeading-template--22812441805081__9fe0cd6c-1203-4988-a68f-ca2a5b621da9 {
    width: 100%;
}
}

 

And Save. 

Result:

Made4uoRibe_0-1716762729550.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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Made4uo-Ribe
Shopify Partner
10038 2387 3014

This is an accepted solution.

Yeah sure, sorry late relpy. This is the last post I comment before I went to bed. 

Check this one. Same instruction. 

 

@media only screen and (max-width: 989px){
.section-template--22812441772313__85b2f02b-3777-4f02-b189-7dea4bda9150-padding h2 {
    width: 100%;
    text-align: center;
}
}

 

And Save.

Result:

Made4uoRibe_0-1716817244374.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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Made4uo-Ribe
Shopify Partner
10038 2387 3014

This is an accepted solution.

Hi @JenniferF 

Thank you for waiting. I check it the code still work but it wat called by other codes. 

Check this one.

 

.title-wrapper-with-link {
    flex-direction: unset !important;
}

 

And Save. 

Result:

Made4uoRibe_0-1721063256270.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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 13 (13)

Made4uo-Ribe
Shopify Partner
10038 2387 3014

This is an accepted solution.

Hi @JenniferF 

Check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media only screen and (max-width:989px){
h2#SectionHeading-template--22812441805081__9fe0cd6c-1203-4988-a68f-ca2a5b621da9 {
    width: 100%;
}
}

 

And Save. 

Result:

Made4uoRibe_0-1716762729550.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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
JenniferF
Explorer
64 1 9

Hello! It worked, thank you so much! I appreciate your help! 😀💜

Jennifer F
Made4uo-Ribe
Shopify Partner
10038 2387 3014

Welcome! Thanks for the coffee. 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
JenniferF
Explorer
64 1 9

I have one more issue I just found. The "Browse Other Collections" title is now not centered on the mobile view as well. Can you please help me with this too?

Jennifer F
Made4uo-Ribe
Shopify Partner
10038 2387 3014

This is an accepted solution.

Yeah sure, sorry late relpy. This is the last post I comment before I went to bed. 

Check this one. Same instruction. 

 

@media only screen and (max-width: 989px){
.section-template--22812441772313__85b2f02b-3777-4f02-b189-7dea4bda9150-padding h2 {
    width: 100%;
    text-align: center;
}
}

 

And Save.

Result:

Made4uoRibe_0-1716817244374.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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
JenniferF
Explorer
64 1 9

It worked, thank you so much! 🙏🏽

Jennifer F
Made4uo-Ribe
Shopify Partner
10038 2387 3014

Welcome. 😊

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
JenniferF
Explorer
64 1 9

Hello there! I am currently updating my Dawn theme to 15.0.0 and tried to use the two codes above to center align the text for "Shop" and "Browse Other Collections" titles and the codes are no longer working. I need them centered when it's on mobile view, desktop view is fine. Would you be able to help me with updating the codes?

Jennifer F
JenniferF
Explorer
64 1 9

I forgot to mention, I do not have the updated version published. I will wait till you are online.

Jennifer F
JenniferF
Explorer
64 1 9

I have the updated version published now. @Made4uo-Ribe

 

www.jennszencreations.com

Jennifer F
Made4uo-Ribe
Shopify Partner
10038 2387 3014

This is an accepted solution.

Hi @JenniferF 

Thank you for waiting. I check it the code still work but it wat called by other codes. 

Check this one.

 

.title-wrapper-with-link {
    flex-direction: unset !important;
}

 

And Save. 

Result:

Made4uoRibe_0-1721063256270.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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
JenniferF
Explorer
64 1 9

Hi @Made4uo-Ribe! It worked, thank you so much for your help! 🙂

Jennifer F
Made4uo-Ribe
Shopify Partner
10038 2387 3014

Welcome, 😊

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.