Jump to content

Home page logo not appearing on mobile

Recommended Posts

Posted

Site URL: https://petalumaartscenter.squarespace.com/

Site password: pac

I replaced the home page logo with an alternate image and now I the logo on the home page does not show up at all. 

Anyone know what's going on?

This is the code I put in the home page header to replace the logo:

<style>
 
  .header-title-logo img {
    visibility: hidden;
}
.header-display-desktop .header-title-logo a::before {
    content: "";
    background-image: url(https://static1.squarespace.com/static/66c6495e2b6d0959e53eb16c/t/66f31748ff46a409e9648581/1727207240670/PAC_logo_white.png);
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left;
    position: absolute;
    top: 0;
    left: 0;
}

.header-display-desktop .header-title-logo {
    position: relative;
}
 
  }
</style>

 

 

  • Replies 2
  • Views 406
  • Created
  • Last Reply

Top Posters In This Topic

Posted
7 hours ago, 2birds said:

Site URL: https://petalumaartscenter.squarespace.com/

Site password: pac

I replaced the home page logo with an alternate image and now I the logo on the home page does not show up at all. 

Anyone know what's going on?

This is the code I put in the home page header to replace the logo:

<style>
 
  .header-title-logo img {
    visibility: hidden;
}
.header-display-desktop .header-title-logo a::before {
    content: "";
    background-image: url(https://static1.squarespace.com/static/66c6495e2b6d0959e53eb16c/t/66f31748ff46a409e9648581/1727207240670/PAC_logo_white.png);
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left;
    position: absolute;
    top: 0;
    left: 0;
}

.header-display-desktop .header-title-logo {
    position: relative;
}
 
  }
</style>

 

 

Replace your code with the code bellow.

<style>
  .header-title-logo img {
    visibility: hidden;
  }
  .header-title-logo a::before {
    content: "";
    background-image: url(https://static1.squarespace.com/static/66c6495e2b6d0959e53eb16c/t/66f31748ff46a409e9648581/1727207240670/PAC_logo_white.png);
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left;
    position: absolute;
    top: 0;
    left: 0;
  }
  .header-display-desktop .header-title-logo {
    position: relative;
  }
</style>

 

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

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.