What's your biggest current challenge? Have your say in Community Polls along the right column.

Re: Font size

Solved

Font size

hritikakhattar
Tourist
6 0 2

Hi,
If someone can help me how to reduce the font size of headings and description for the featured collection and also with the alignment, that would be great. 

 

The font size looks fine on desktop but on mobile its too big and its two lines instead of one.

 

Attaching a screenshot for reference

 

hritikakhattar_0-1725526963246.png

 

Store: https://boutu.in/

Accepted Solutions (2)

BSSCommerce-HDL
Shopify Partner
2305 834 908

This is an accepted solution.

Hi @hritikakhattar

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

<style>
@media only screen and (max-width: 767px) {
    h2.title.inline-richtext {
       font-size: 16px !important;
    }
    
    .collection__description {
       font-size: 14px !important;
    }
 }
</style>

 Here is result: 

BSSCommerceHDL_0-1725527462187.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Tech_Coding
Shopify Partner
417 110 98

This is an accepted solution.

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 only screen and (max-width: 767px) {
   .collection__title.title-wrapper {
        text-align: center !important;
     }
}
</style>

Tech_Coding_0-1725530737858.png

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.

View solution in original post

Replies 6 (6)

BSSCommerce-HDL
Shopify Partner
2305 834 908

This is an accepted solution.

Hi @hritikakhattar

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

<style>
@media only screen and (max-width: 767px) {
    h2.title.inline-richtext {
       font-size: 16px !important;
    }
    
    .collection__description {
       font-size: 14px !important;
    }
 }
</style>

 Here is result: 

BSSCommerceHDL_0-1725527462187.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

hritikakhattar
Tourist
6 0 2

Thank you! It worked

Could you let me know how to align it as well? 
I want to do center alignment?

Tech_Coding
Shopify Partner
417 110 98

This is an accepted solution.

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 only screen and (max-width: 767px) {
   .collection__title.title-wrapper {
        text-align: center !important;
     }
}
</style>

Tech_Coding_0-1725530737858.png

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.

Tech_Coding
Shopify Partner
417 110 98

Hello @hritikakhattar 

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 only screen and (max-width: 767px) {
      h2.title.inline-richtext.h2.scroll-trigger.animate--slide-in {
          font-size: 12px !important;
     }
     .collection__description.body.rte.scroll-trigger.animate--slide-in {
          font-size: 14px !important;
       }
}
</style>

Tech_Coding_0-1725527907381.png

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.

DanCodes
Shopify Partner
54 9 6
@media (max-width: 991px) {
.collection__title.title-wrapper {
text-align: center;
}

.collection__title .title {
font-size: 18px; 
}
}

Hi, 

Go to Online Store -> Edit code -> Open the assets folder -> Open the base.css file -> Add the following styles.

If you'd like to support my work, you're welcome to treat me to a coffee here: Buy Me a Coffee
If you'd like to hire me, feel free to contact me: E-mail WhatsApp

quickshipsteve
Tourist
14 0 1

I would do it,  however my friend is a big coder xcoder,   programmer developer,  I don't want to mess anything up,  very interesting.

Steve Forman