Jump to content

Category Dropdown Menu On Desktop

Recommended Posts

On my store, I have a category filter. On the desktop version of my site, the categories are listed in a row. On my phone, the categories are listed in a dropdown menu.
I would like the categories to be listed in a dropdown menu for the desktop version.

Also, if it is possible to have the tags listed in a dropdown menu as well, I would prefer that.

My store url:

https://www.theochandler.com/purchasescores

 

Let me know if you have any Custom CSS for this! Thank you!

Link to comment

Add to Design > Custom CSS

@media screen and (min-width:641px) {
 .ProductList-filter-list {
        display: none
    }

    .ProductList-filter-dropdownToggle-label {
        display: block
    }

    .ProductList-filter-dropdownToggle-checkbox:checked~.ProductList-filter-list {
        display: block;
        margin-top: 15px
    }

    .ProductList-filter-dropdownToggle-checkbox:checked~.ProductList-filter-list .ProductList-filter-list-item {
        display: block;
        margin-bottom: 5px
    }

    .ProductList-filter-dropdownToggle-checkbox:checked~.ProductList-filter-dropdownToggle-label .ProductList-filter-dropdownToggle-label-icon:before {
        font-family: 'squarespace-ui-font';
        font-style: normal;
        speak: none;
        font-weight: normal;
        -webkit-font-smoothing: antialiased;
        content: "\e006";
        text-align: center;
        display: inline-block;
        vertical-align: middle
    }

    .ProductList-filter-dropdownToggle-checkbox:checked~.ProductList-filter-dropdownToggle-label .ProductList-filter-dropdownToggle-label-icon:before {
        font-size: 16px;
        width: 16px;
        height: 16px;
        line-height: 16px
    }

    .ProductList-filter-dropdownToggle-checkbox:checked~.ProductList-filter-dropdownToggle-label .ProductList-filter-dropdownToggle-label-icon:before {
        font-size: 1em;
        width: 1em;
        height: 1em;
        line-height: 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

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.