Jump to content

change logo on specific sites on mobile

Go to solution Solved by tuanphan,

Recommended Posts

Hi 😊

I'm trying to switch logos on specific pages on mobile. I already added a different logo for mobile (without a subtitle as in the desktop version) but I need it to switch to the blue version.

I already have a code to switch logos on desktop:

  <style>
header#header img {
  content: url("https://static1.squarespace.com/static/6543b43f555c594c9d98c11a/t/654a3d67afd27f1206b302c7/1699364199599/studio+applaus_logo_sl_rgb_blue.png");
  }
</style>

 

link: https://scarlet-clementine-rsng.squarespace.com/

pw: applaus

Link to comment
  • Replies 2
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

With mobile, just change your code to this

 <style>
header#header img {
  content: url("https://static1.squarespace.com/static/6543b43f555c594c9d98c11a/t/654a3d67afd27f1206b302c7/1699364199599/studio+applaus_logo_sl_rgb_blue.png");
  }
   @media screen and (max-width:767px) {
   header#header img {
  content: url("https://static1.squarespace.com/static/6543b43f555c594c9d98c11a/t/654a3d67afd27f1206b302c7/1699364199599/studio+applaus_logo_sl_rgb_blue.png");
  }
   }
</style>

Replace url in the code with new mobile image url

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.