Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #242847
    Bastien Chilloux
    Participant

    Hi,

    I would like to change the font size but for desktop only or mobile only.

    How can I do this ?

    Thx

    #242881
    Skandha
    Participant

    @bastienchill: Hello there,
    Can you let me know for which text you would like to change the font size?

    Kind Regards,
    Skandha

    #242907
    Bastien Chilloux
    Participant

    H1 essentially but other sizes could be useful too

    #243014
    Skandha
    Participant

    @bastienchill: Hello there,
    Go to => Appearance => Customize => Additional CSS and add the following CSS Code.

    /* To change font of h1 in desktop */
    @media screen and (min-width: 1024px) {
    	h1 {
    		font-size:40px !important;
    	}
    }
    
    /* To change font of h1 in mobile and tablet devices */
    @media screen and (max-width: 1024px) {
    	h1 {
    		font-size:20px !important;
    	}
    }

    You can change the font size according to your choice.
    Let me know if this works out!
    Kind Regards,
    Skandha

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Change font size for desktop use only’ is closed to new replies.