Jump to content

Custom code to Change Mobile Logo on one page

Recommended Posts

Hello

I tried to custom change logo on one of the pages on website.

I was able to change the logo (color, on all pages it is white and on one page is purple) on desktop version but it doesn't wotk for mobile version.

On Advanced settings I injected codes.

For desctop:

<style>
  div.header-title-logo a {
    content:url("https://static1.squarespace.com/static/625ed2d0b9a56372da2b9025/t/632e28b3a9348c56d4d72194/1663969459030/%D0%BB%D0%BE%D0%B3%D0%BE-%D0%BF%D1%80%D0%BE%D0%B7%D1%80%D0%B0%D1%87%D0%BD%D1%8B%D0%B9-%D1%84%D0%BE%D0%BD-04_Square_Purple.png") !important;
    max-height: 95px;
  }
 </style>

 

For mobile:

<style>
  .Mobile-bar-branding-logo {
    content:url("https://static1.squarespace.com/static/625ed2d0b9a56372da2b9025/t/632e28b3a9348c56d4d72194/1663969459030/%D0%BB%D0%BE%D0%B3%D0%BE-%D0%BF%D1%80%D0%BE%D0%B7%D1%80%D0%B0%D1%87%D0%BD%D1%8B%D0%B9-%D1%84%D0%BE%D0%BD-04_Square_Purple.png") !important;
    max-height: 95px;
  }
 </style>

 

Screenshot (567).png

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

35 minutes ago, Masharuki said:

Hello

I tried to custom change logo on one of the pages on website.

I was able to change the logo (color, on all pages it is white and on one page is purple) on desktop version but it doesn't wotk for mobile version.

On Advanced settings I injected codes.

For desctop:

<style>
  div.header-title-logo a {
    content:url("https://static1.squarespace.com/static/625ed2d0b9a56372da2b9025/t/632e28b3a9348c56d4d72194/1663969459030/%D0%BB%D0%BE%D0%B3%D0%BE-%D0%BF%D1%80%D0%BE%D0%B7%D1%80%D0%B0%D1%87%D0%BD%D1%8B%D0%B9-%D1%84%D0%BE%D0%BD-04_Square_Purple.png") !important;
    max-height: 95px;
  }
 </style>

 

For mobile:

<style>
  .Mobile-bar-branding-logo {
    content:url("https://static1.squarespace.com/static/625ed2d0b9a56372da2b9025/t/632e28b3a9348c56d4d72194/1663969459030/%D0%BB%D0%BE%D0%B3%D0%BE-%D0%BF%D1%80%D0%BE%D0%B7%D1%80%D0%B0%D1%87%D0%BD%D1%8B%D0%B9-%D1%84%D0%BE%D0%BD-04_Square_Purple.png") !important;
    max-height: 95px;
  }
 </style>

 

Screenshot (567).png

Can you share your site with the protected password so I can take a look?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. 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.