Jump to content

How to replace logo in dropdown menu for mobile version

Recommended Posts

How can I change the color of the site's logo when the dropdown menu is clicked? The main logo is difficult to see on a blue background and I'd like to show a white version of the logo when the dropdown is in effect. There's currently a white logo added into the dropdown area itself, but this is just a placeholder/temporary solution. The original logo still appears above it.

Screenshots for reference

Screenshot 2024-05-21 at 3.24.08 PM.png

Screenshot 2024-05-21 at 3.24.20 PM.png

Link to comment

Hi Milla I can help you with this:

1. Upload your alternate logo under design -> custom css -> manage files

2.  Upload this code and just input the collection id and url of the logo


/**mobile logo**/
@media screen and (max-width:767px) {
#collection-id-here .header-display-mobile .header-title-logo img {
content: url("insert-url-here") !important;
max-height:inherit !important;

  }
}

Link to comment
  • 1 month later...
On 5/21/2024 at 6:14 PM, Websley said:

Hi Milla I can help you with this:

1. Upload your alternate logo under design -> custom css -> manage files

2.  Upload this code and just input the collection id and url of the logo


/**mobile logo**/
@media screen and (max-width:767px) {
#collection-id-here .header-display-mobile .header-title-logo img {
content: url("insert-url-here") !important;
max-height:inherit !important;

  }
}

Thanks for your response. That seems straightforward but I am unfamiliar with some of this.

What do I need to input for collection id, where can I find that?

I don't see a design section of my site. Is that a permissions issue, or has Squarespace changed their layout?

 

 

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.