Jump to content

Change logo on specific pages - mobile view

Recommended Posts

Site URL: https://www.prdispatch.com/

Hi, I'm trying to change the logo to white on specific pages. I've done it on the desktop size with the coding below but I can't figure how to do it on mobile view.

 

<style>
  .header-title-logo img {
    visibility: hidden;
}
.header-title-logo a {
    background-image: url(https://static1.squarespace.com/static/61e1b890c5b8624a8b9c74b4/t/61f290fa409bb56a624998de/1643286778949/PR+Dispatch+Logo+white.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
</style>

Link to comment
  • Replies 1
  • Views 221
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Remove your code & add this new code

<style>
  header#header img {
    content: url(https://static1.squarespace.com/static/61e1b890c5b8624a8b9c74b4/t/61f290fa409bb56a624998de/1643286778949/PR+Dispatch+Logo+white.png);
}
</style>

 

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.