Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

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>

 

You can send your question to my email to get detail answer. / How to Setup Password & Share URL 

-- Pour your heart into it

Link to post
  • Replies 81
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

@StephenWise1999 Add to Home > Design > Custom CSS /* Change dropdown menu background */ .header-nav-folder-content { background: #febf00 !important; }

try this .folder .subnav li { background: red !important; }  

Fixed! Thank you so much! I changed it to white as transparent didn't work. Thank you again!!

Posted Images

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 post
Posted (edited)

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 post
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)?

You can send your question to my email to get detail answer. / How to Setup Password & Share URL 

-- Pour your heart into it

Link to post
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 post
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;
}

 

You can send your question to my email to get detail answer. / How to Setup Password & Share URL 

-- Pour your heart into it

Link to post
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 post
7 hours ago, tuanphan said:
No Such Website
The website you requested does not exist.
 
Can you check your site url?

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

Link to post
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;
}

 

You can send your question to my email to get detail answer. / How to Setup Password & Share URL 

-- Pour your heart into it

Link to post
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 post
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

You can send your question to my email to get detail answer. / How to Setup Password & Share URL 

-- Pour your heart into it

Link to post
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;
}

 

You can send your question to my email to get detail answer. / How to Setup Password & Share URL 

-- Pour your heart into it

Link to post

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 post
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 post
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?

You can send your question to my email to get detail answer. / How to Setup Password & Share URL 

-- Pour your heart into it

Link to post
  • 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 post
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.

 

You can send your question to my email to get detail answer. / How to Setup Password & Share URL 

-- Pour your heart into it

Link to post
  • 4 weeks later...

@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.

Link to post
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?

You can send your question to my email to get detail answer. / How to Setup Password & Share URL 

-- Pour your heart into it

Link to post
  • 4 weeks later...
On 7/30/2019 at 2:09 AM, tuanphan said:

You're welcome. Have a nice week.

 Hi There, 

I have tried using this for a different colour drop downbox, however it goes black. 
I'm hoping to have a transparent background where only the words show with no colour. 

Is this possible? 

Thank you!

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...