Jump to content

Header Dropdown

Recommended Posts

  • Replies 5
  • Views 1.6k
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...

Add to Last Line in Code Injection > Footer

<script>
  $(document).ready(function() { 
		$('.header-menu-nav-folder[data-folder="/shopfolder"]').appendTo('[data-folder="root"]>div>div>div:nth-child(2)');
		$('a[data-folder-id="/shopfolder"]').click(function() {
  $(this).toggleClass('tp-burger-folder');
});
	});
</script>
<style>
  .header-menu-nav-folder[data-folder="/shopfolder"] {
    display: block !important;
    position: relative !important;
    transform: unset !important;
    overflow: hidden;
    height: 0 !important;
    transition: all 0.3s;
}
.header-menu-nav-folder[data-folder="/shopfolder"] .header-menu-controls {
    display: none !important;
}
a.tp-burger-folder+.header-menu-nav-folder[data-folder="/shopfolder"] {
    height: 100% !important;
}
.header-menu-nav-folder[data-folder="root"] {
    transform: unset !important;
    overflow: hidden;
}
[data-folder="/insights"] a {
    margin-top: 5px;
    margin-bottom: 5px;
    white-space: nowrap;
}
[data-folder-id] {
    margin-top: 10px;
    margin-bottom: 10px !important;
}
 a[data-folder-id] span:nth-child(2):after {
    content: "\e009";
    font-family: 'squarespace-ui-font';
}

a[data-folder-id] {
    white-space: nowrap;
}

span.chevron.chevron--right {
 visibility: hidden;
}
</style>

image.png.49bbc851dd53494cc5cdfed8346dd572.png

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.