Jump to content

How do I make columns for only one dropdown menu?

Recommended Posts

Posted

I have 2 dropdown menus in my header of which I only want to edit one of them using custom CSS. How do I do it? Is it even possible? Please help I have this website due in 3 days.

  • Replies 1
  • Views 892
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

Yep, it's possible. I assume the 2 columns should only appear on desktop, not the mobile menu.

Add this to your custom CSS:

.header-nav-folder-title[href="/folder-slug"] + .header-nav-folder-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1em;
}

Change /folder-slug to the slug of the folder you want to have 2 columns.

Hope that helps.

Andrew

Square Ace

Enhancing Squarespace websites for over a decade. I am an expert in writing custom code for the Squarespace platform.
Tailor-made, reusable solutions to your problems, whether it's styling, layout or functionality.
Maverick Squarespace Designers, I'll be your Goose. If your tools are holding back your creative vision, maybe I can help.
I also build useful plugins for Squarespace (with some really positive reviews) including the popular high-quality video background plugin.

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.