Jump to content

Help with custom lock screen on mobile

Go to solution Solved by sorca_marian,

Recommended Posts

Hi,

On which page?

Link to comment

To increase the heading size on mobile add the below code in the Page header code injection

<style>
@media (max-width: 767px) {

    .lock-screen h1 {
        font-size : 40px!important
    }
    
}
</style>

 

Screenshot 2024-03-14 at 18.31.53.png

Link to comment
17 hours ago, sorca_marian said:

To increase the heading size on mobile add the below code in the Page header code injection

<style>
@media (max-width: 767px) {

    .lock-screen h1 {
        font-size : 40px!important
    }
    
}
</style>

 

Screenshot 2024-03-14 at 18.31.53.png

Hi @sorca_marian
Thank you so much, this worked.

Can you also give me a code to adjust the size of the second smaller headline below? On my iPhone 12Pro the last word jumps into the next line. And I would like to have the whole content more down. (Headline, subheadline and password field)

Thank you
Sibylle

IMG_6101.PNG

Link to comment

Hi,

Sure.
You can adjust the font size

<style>
@media (max-width: 767px) {

    .lock-screen h1 {
        font-size : 40px!important
    }

    .lock-screen p {
        font-size : 15px!important
    }
    
}  
</style>

 

Screenshot 2024-03-15 at 15.28.01.png

Edited by sorca_marian
Link to comment
16 hours ago, sorca_marian said:

Hi,

Sure.
You can adjust the font size

<style>
@media (max-width: 767px) {

    .lock-screen h1 {
        font-size : 40px!important
    }

    .lock-screen p {
        font-size : 15px!important
    }
    
}  
</style>

 

Screenshot 2024-03-15 at 15.28.01.png

Thank you so much. And how do I move the whole block a bit more down?

Thanks
Sibylle

Link to comment
  • Solution

You can update the margin from below

<style>
@media (max-width: 767px) {

    .restrict-width-1000 {
        margin-top : 30px!important;
    }

    .lock-screen h1 {
        font-size : 40px!important
    }

    .lock-screen p {
        font-size : 15px!important
    }
}
</style>

 

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.