Jump to content

Social links not appearing on mobile menu from home page.

Go to solution Solved by Lesum,

Recommended Posts

  • Solution

@niteshifte Here's the updated code with social media icons in grey color:

@media only screen and (max-width: 767px) {
	body.homepage header#header svg {
		fill: #242f36 !important;
	}
}

 

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

Link to comment

@niteshifte  It wasn't related to the custom code I provided earlier; the logo and cart icon color were already black. This code should resolve the issue.

@media only screen and (max-width: 767px) {
	body.homepage header#header .header-actions-action svg {
		fill: #fff !important;
	}
	body.homepage.header--menu-open header#header svg.icon--cart {
		fill: #242f36 !important;
	}
	body.homepage.header--menu-open header#header .burger-inner>div {
		background-color: #242f36 !important;
	}
	body.homepage.header--menu-open header#header img {
		filter: invert(0) !important;
		-webkit-filter: invert(0) !important;
		content: url("https://images.squarespace-cdn.com/content/v1/63af95137b2cb6535c0acc33/23d81b68-005b-4283-a2a6-e03bf92a2f58/Artboard+17.png?format=1500w") !important;
	}
}

 

Edited by Lesum
Logo URL updated

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

Link to comment
2 minutes ago, Lesum said:

@niteshifte  It wasn't related to the custom code I provided earlier; the logo and cart icon color were already black. This code should resolve the issue.

@media only screen and (max-width: 767px) {
	body.homepage header#header .header-actions-action svg {
		fill: #fff !important;
	}
	body.homepage.header--menu-open header#header svg.icon--cart {
		fill: #242f36 !important;
	}
	body.homepage.header--menu-open header#header .burger-inner>div {
		background-color: #242f36 !important;
	}
	body.homepage.header--menu-open header#header img {
		filter: invert(0) !important;
		-webkit-filter: invert(0) !important;
		content: url("https://images.squarespace-cdn.com/content/v1/63af951…/23d81b68-005b-4283-a2a6-e03bf92a2f58/Artboard+17.png");
	}
}

 

Hi Sam, thanks for that. That fixes the cart icon but now my logo is missing from the menu? I'm so sorry abotu this hassle!

Screenshot 2023-09-17 at 11.51.24 p.m..png

Link to comment

@niteshifte Looks like image URL need to be changed when menu is open. I also updated the code with the correct URL. Can you change the URL of the logo in the code to this one: Artboard+17.png?format=1500w

Edited by Lesum

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

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.