Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1481820
H2 tag too small on mobile
Closed

Comments

  • biernat_a started the conversation

    Hi,

    Is there any way to change font size of H2 tag on mobile? On mobile it becomes much smaller than the body text.

    Thanks in advance!

    Adam Biernat

  •  7,092
    Oliver replied

    HI!

    here is an example of CSS for controlling font size for mobile:

    @media (max-width: 1000px) {
    h1, .title-h1 {        
        line-height: 30px !important;        
        font-size: 30px !important;
    }
    h2, .title-h2 {        
        line-height: 30px !important;        
        font-size: 30px !important;
        }
    }
    @media (max-width: 768px) {
    h1, .title-h1 {        
        line-height: 30px !important;        
        font-size: 30px !important;
    }
    h2, .title-h2 {        
        line-height: 30px !important;        
        font-size: 30px !important;
        }
    }
    @media (max-width: 500px) {
    h1, .title-h1 {        
        line-height: 30px !important;        
        font-size: 30px !important;
    }
    h2, .title-h2 {        
        line-height: 30px !important;        
        font-size: 30px !important;
        }
    }

     

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • biernat_a replied

    Thank you Gregor!

  •  7,092
    Oliver replied

    Welcome!

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver