Make Page Title Smaller On Mobile

Solved

Make Page Title Smaller On Mobile

umrraz90
Excursionist
35 1 11

I would like to make page titles smaller on mobile so that it fits on one line, how do I do this? 

 

Example below for Dried Wedding Flowers however I would like it done on every page where it doesnt sit on o

 

umrraz90_0-1722336989020.png

 

 

 

Accepted Solution (1)
Moeed
Shopify Partner
7716 2071 2550

This is an accepted solution.

Hey @umrraz90 

 

Remove the previous code, and add this updated code with the same steps.

<style>
@media screen and (max-width: 767px) {
.page-title {
    font-size: 28px !important;
}
.image-with-text__heading {
    font-size: 18px !important;
}
}
</style>

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 10 (10)

Moeed
Shopify Partner
7716 2071 2550

Hey @umrraz90 

 

Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


umrraz90
Excursionist
35 1 11

Hi Moeed, 

 

Its theflowerstudiobyroo.com 

 

 

thank you 

Moeed
Shopify Partner
7716 2071 2550

Hey @umrraz90 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (max-width: 767px) {
.page-title {
    font-size: 28px !important;
}
}
</style>

RESULT:

Moeed_0-1722337816549.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


umrraz90
Excursionist
35 1 11

Legend! it works for the page title, how would i do the same for the title lifes precious moments on the wedding page? ( I will mark as solution!)

Moeed
Shopify Partner
7716 2071 2550

This is an accepted solution.

Hey @umrraz90 

 

Remove the previous code, and add this updated code with the same steps.

<style>
@media screen and (max-width: 767px) {
.page-title {
    font-size: 28px !important;
}
.image-with-text__heading {
    font-size: 18px !important;
}
}
</style>

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


umrraz90
Excursionist
35 1 11

Thank you so much!

GTLOfficial
Shopify Partner
880 182 192

Hello @umrraz90 

Go to online store ---------> themes --------------> actions ------> edit code------->base.css
and add this code at the end of the file.

.image-with-text__content > :first-child:is(.image-with-text__heading),
{
font-size: 21px !important;
}

and the result will be
11.png


If this was helpful, hit the like button and mark the job as completed.
Thanks

- Buy me a Pizza
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on the store Hire me. GTL web solutions
- Want Complete Storefront: Send an email ⇨- Email: info@gtlofficial.com - Skype: ritesh_27dh

Made4uo-Ribe
Shopify Partner
10211 2427 3078

Hi @umrraz90 

Would you mind to share your store URL? 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.
umrraz90
Excursionist
35 1 11

Hi @Made4uo-Ribe 

 

Its theflowerstudiobyroo.com

 

Thanks you 

Made4uo-Ribe
Shopify Partner
10211 2427 3078

Thanks for the info, check this one. 

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

@media only screen and (max-width: 749px){
h2.h1, .page-title, h1.h0 {
    font-size: 25px;
}
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1722338907798.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.