Jump to content

Dropdown Menu colour Squarespace 7.1

Go to solution Solved by tuanphan,

Recommended Posts

9 minutes ago, Iryne said:

Hi, @tuanphan

I want ask you.
I want to add an arrow icon (dropdown icon near "Learn more" item) in navigation bar
Because in my wireframe it was look like...(add attachment below)


Question to you:
Could I added this icon? Maybe I could fixed it after the launch the website?

Add to Home > Settings > Advanced > Code Injection > Header

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
  a.header-nav-folder-title:after {
    content: "\f107";
    font-family: FontAwesome;
    font-weight: bold;
}
</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
6 minutes ago, tuanphan said:

Add to Home > Settings > Advanced > Code Injection > Header


<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
  a.header-nav-folder-title:after {
    content: "\f107";
    font-family: FontAwesome;
    font-weight: bold;
}
</style>

 

Nice! Thanks!!!

Link to comment

Looking to center the dropdown background. Anyone have the code for that?

https://tarpon-mandolin-lblr.squarespace.com/ (password is password)

Couple more dropdown ideas:

•Can the hover color on the folder link be made different than the hover on the nav links in the dropdown itself?

•Wondering if I can have part of the dropdown background change on the nav link that I hover over. Does that make sense?

Edited by crrjuilliard
Link to comment
7 hours ago, crrjuilliard said:

Looking to center the dropdown background. Anyone have the code for that?

https://tarpon-mandolin-lblr.squarespace.com/ (password is password)

Couple more dropdown ideas:

•Can the hover color on the folder link be made different than the hover on the nav links in the dropdown itself?

•Wondering if I can have part of the dropdown background change on the nav link that I hover over. Does that make sense?

Q1. Folder title or folder items?

Q2. hover 6 folder links change folder background (6 background color)?

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
2 hours ago, tuanphan said:

Q1. Folder title or folder items?

Q2. hover 6 folder links change folder background (6 background color)?

Q1: Right now the folder title and items are the same color on hover. Looking to have the folder title be one color and all the items be a different color.

Q2: I'm envisioning when you hover over a folder link/item, the section of the background behind that link changes color, but the rest of the background behind the other folder items/links stays the same.

Link to comment
5 hours ago, crrjuilliard said:

Q1: Right now the folder title and items are the same color on hover. Looking to have the folder title be one color and all the items be a different color.

Q2: I'm envisioning when you hover over a folder link/item, the section of the background behind that link changes color, but the rest of the background behind the other folder items/links stays the same.

Add to Home > Design > Custom CSS

/* Q2 */
.header-nav-folder-item:hover {
    background: red;
}
/* Q1 */
.header-nav-folder-item:hover a {
    color: blue !important;
}

 

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
12 hours ago, tuanphan said:

Add to Home > Design > Custom CSS


/* Q2 */
.header-nav-folder-item:hover {
    background: red;
}
/* Q1 */
.header-nav-folder-item:hover a {
    color: blue !important;
}

 

Q1 is perfect, thanks

For Q2, it's almost perfect. Here's what it looks like for me (I made the dropdown have rounded corners too). Is there any way to have the change in color extend to the edge of the dropdown?

Screen Shot 2020-05-25 at 5.28.58 PM.png

Link to comment
13 hours ago, crrjuilliard said:

Also, I'm still looking to center the dropdown itself. Already got your code for centering the text.

No Such Website
The website you requested does not exist.
 
Can you check your site 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
14 hours ago, crrjuilliard said:

sorry, domain transfer just went through. www.cherieroe.com  (pw is password)

Add to Home > Design > Custom CSS

a.header-nav-folder-title:hover+div, .header-nav-folder-content {
    text-align: center !important;
    position: absolute;
    left: 40% !important;
    right: unset !important;
    -webkit-transform: translatex(-50%);
    -o-transform: translatex(-50%);
    transform: translatex(-50%);
    background: transparent !important;
}

 

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
6 hours ago, tuanphan said:

Add to Home > Design > Custom CSS


a.header-nav-folder-title:hover+div, .header-nav-folder-content {
    text-align: center !important;
    position: absolute;
    left: 40% !important;
    right: unset !important;
    -webkit-transform: translatex(-50%);
    -o-transform: translatex(-50%);
    transform: translatex(-50%);
    background: transparent !important;
}

 

I've added this in so you can see what it looks like. It's still not centered and now the dropdown background is gone. I liked the background, I was just wanting the background color change on hover to go from edge to edge of the background. I understand this may not be possible since I gave the dropdown background rounded corners.

Link to comment
16 hours ago, crrjuilliard said:

I've added this in so you can see what it looks like. It's still not centered and now the dropdown background is gone. I liked the background, I was just wanting the background color change on hover to go from edge to edge of the background. I understand this may not be possible since I gave the dropdown background rounded corners.

you can delete background: transparent !important in above code

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
On 5/28/2020 at 10:26 PM, crrjuilliard said:

Perfect. Still not quite centered. And the background change isn't full width.

Screen Shot 2020-05-28 at 11.25.43 AM.png

Edit 40% to 50%

Add this to Home > Design > Custom CSS

.header-nav-folder-content {
    padding: 0 !important;
}
.header-nav-folder-content div {
    padding: 0.5em 1em;
}

 

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

Hi,

I want to make the color of  text of the name of the "About" folder to change when active on a page in that section. I tried using the code below in a Brine family template but it didn't work. Would appreciate any help! Thanks! https://hexagon-mustard-99j4.squarespace.com/mission

/* folder */
.header-nav-folder-item--active a {
    color: red !important;
}
Link to comment
On 5/27/2020 at 3:36 PM, tuanphan said:

Add to Home > Design > Custom CSS


a.header-nav-folder-title:hover+div, .header-nav-folder-content {
    text-align: center !important;
    position: absolute;
    left: 40% !important;
    right: unset !important;
    -webkit-transform: translatex(-50%);
    -o-transform: translatex(-50%);
    transform: translatex(-50%);
    background: transparent !important;
}

 

Thank you! so much. just used this myself!!!!

 

Link to comment
On 6/13/2020 at 1:07 AM, justbcuz73 said:

Hi,

I want to make the color of  text of the name of the "About" folder to change when active on a page in that section. I tried using the code below in a Brine family template but it didn't work. Would appreciate any help! Thanks! https://hexagon-mustard-99j4.squarespace.com/mission


/* folder */
.header-nav-folder-item--active a {
    color: red !important;
}
Private Site
This site is currently private. If you’re the owner or contributor, log in.
Can you setup password & share 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
  • 4 weeks later...

Hi @tuanphan, everyone - what a good thread to find. I hope you may be able to help me with my question, too ?

Is it possible to completely change the drop down menu to something more 'elegant', for example like what you find on stripe.com, under 'products' ? Would that be custom CSS - and if so, are there any code snippets out there I can use for something similar ?

Link to comment
1 hour ago, sundboell said:

Hi @tuanphan, everyone - what a good thread to find. I hope you may be able to help me with my question, too ?

Is it possible to completely change the drop down menu to something more 'elegant', for example like what you find on stripe.com, under 'products' ? Would that be custom CSS - and if so, are there any code snippets out there I can use for something similar ?

Hi. You can, with simpler layout.

You can send link to your site, I can take a look

You can also use the mega menu plugin.

 

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
  • 4 weeks later...
4 hours ago, lilibetovesen said:

@tuanphan, This thread has been very helpful. Thank you. I may have missed this, if someone else asked already, but I'd like to change the drop-down menu items to this color #ef6299. Can you help me with that code? Thank you.

Can you share site 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
  • 4 weeks later...

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.