Jump to content

Recommended Posts

Hello,

I currently have a folder in my header which provides a dropdown navigation to my different collections on desktop, but when on mobile it opens up a big screen. Is there a way to get the mobile version to look similar to the desktop? I've attached pictures of what it looks like on both.

IMG_5766.thumb.jpg.7cb460084d39464d93e75f43d756473f.jpgScreenShot2023-10-26at11_05_03AM.thumb.png.8a028c4892c3973308f81af75255880b.png

Link to comment
  • Replies 5
  • 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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.