Jump to content

How to center align product header for mobile

Go to solution Solved by tuanphan,

Recommended Posts

On 8/3/2022 at 2:37 PM, Venera said:

 

Hi, I use these two codes and it works fine if there weren't so many categories. Unfortunately, I ran into the problem that it is cropped, besides, can you help me change the font of the previous category? (remove the caps and change it to walsheim custom font and move to center (like in computer version))

https://heptagon-brass-6xej.squarespace.com/

pw - hello

 

3.png

2.png

1.png

Add this CSS to break category to multi lines if a lot of items

ul.nested-category-children {
    flex-wrap: wrap !important;
}
@media screen and (max-width:767px) {
nav.nested-category-breadcrumb {
    text-align: center !important;
}
h2.nested-category-title.nested-category-title-padding {
    justify-content: center;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
3 hours ago, tuanphan said:

Add this CSS to break category to multi lines if a lot of items

ul.nested-category-children {
    flex-wrap: wrap !important;
}
@media screen and (max-width:767px) {
nav.nested-category-breadcrumb {
    text-align: center !important;
}
h2.nested-category-title.nested-category-title-padding {
    justify-content: center;
}
}

 

Perfect! Thank you a lot! 🙂

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.