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

Mobile main navigation folder view - Momentum Template


Question

Site URL: https://zoranmilisicphotography.squarespace.com/

Hi there, I am using the momentum template to display a clients photography folio. I created a folder within the main navigation to display 'projects'. On desktop this views fine, however on mobile, the folder is automatically expanded to view all the pages within that folder. Is there a way to view just the folder 'projects' on mobile without viewing all the pages straight up?

Password is : Zoran

Many thanks for any help at all.

Screen Shot 2022-01-19 at 8.05.47 am.png

Screen Shot 2022-01-19 at 8.06.03 am.png

Link to comment
  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

6 answers to this question

Recommended Posts

  • 0

Thank you for your attention on this! The code indeed worked to hide the pages within the 'projects' folder. However now when you click on projects, the menu doesn't view the list of pages within the folder - it goes directly to the first page of the projects folder. Is there a way around this? I want it so when you click on 'projects', the project page list will be visible.

Thanks again

Screen Shot 2022-01-21 at 2.33.03 pm.png

Screen Shot 2022-01-21 at 2.33.46 pm.png

Link to comment
  • 0

Add to Settings > Advanced > code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
 $(document).ready(function() { 
		$('li.folder.folders-collection a').removeAttr('href');
	});
</script>
<script>
$(document).click(function() { 
		$('li.folder.folders-collection').addClass('t-open');
	});
</script>
<style>
  @media screen and (max-width:736px) {
li.folder-link {
    display: none;
}
    li.t-open ~ .folder-link {
    display: block;
}
}
</style>

 

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
  • 0

Hi Tuan, I have added this code but when I test this on my desktop as 'mobile view', the folder 'projects' has no active click through. Also, when I test the mobile menu on my actual phone, the projects folder is automatically expanded so it it views all pages within. Please let me know I have done something incorrectly. Thank you

Link to comment
  • 0

Hi Tuan... Projects should be clickable so when you select, you can see the pages within this folder. At the moment, you can't click on projects when on mobile view (testing mobile view on desktop).

When on actual mobile, I have the same issue I started with - the pages within projects folder is automatically expanded.

Essentially, I just want the menu to behave like it does on all other templates.

Thank you 

Actual Phone - menu is automatically expanded.PNG

Mobile View on Desktop.png

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