Jump to content

Creating dropdown menu without a folder

Recommended Posts

Site URL: https://www.joeylubelfeldcopywriting.com

Hi,

Right now I don't have any customization on my website.

For my menu, I have a "Services" folder where I have currently linked 5 different pages, one of which is a "services overview" page since the folder cannot act as a page. I'd like to be able to click on "services" in the menu bar to take the user to a page with content, while maintaining the dropdown menu with the four other pages. Does anyone have any suggestions?

 

Thanks!

Joey

PS I apologize if this is confusing - I'm not a web developer or designer so I don't really know the proper jargon!

Link to comment

Hi. Add this to Settings > Advanced > Code Injection > Footer

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(document).ready(function() { 
		$('a.header-nav-folder-title[href="/all-services"]').click(function() {
			var link = $(this).text(),
				href = "/services";
			window.location.href=href;
		});
});
</script>

 

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
  • 2 years later...

Hi there - similar situation here, although I'd like to nest the page Newsletters under News.

Is that possible? 

They are currently side by side on the menu and it doesn't make much sense.

Also another topic, but can we see the date a PDF file was uploaded to our website? I see the asset library only includes images and videos, which is unfortunate.

Link to comment
29 minutes ago, amyfmcc said:

Hi there - similar situation here, although I'd like to nest the page Newsletters under News.

Is that possible? 

They are currently side by side on the menu and it doesn't make much sense.

Also another topic, but can we see the date a PDF file was uploaded to our website? I see the asset library only includes images and videos, which is unfortunate.

You can create a new folder with name News, then move Newsletter to News Folder, then we will give code to make News folder title clickable

With PDF, I don't know this.

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
On 6/23/2023 at 3:01 PM, tuanphan said:

You can create a new folder with name News, then move Newsletter to News Folder, then we will give code to make News folder title clickable

With PDF, I don't know this.

Hello! What code can I use to make the News folder clickable?

Link to comment
On 6/23/2023 at 10:01 PM, tuanphan said:

You can create a new folder with name News, then move Newsletter to News Folder, then we will give code to make News folder title clickable

With PDF, I don't know this.

damienbabington.com

How can I make my Portfolio tab clickable and make it go to damienbabington.com/portfolio? 

Also, how can I remove the black box that appears behind the dropdown menu? 

Link to comment
On 7/3/2023 at 8:05 PM, DameTheStoic said:

damienbabington.com

How can I make my Portfolio tab clickable and make it go to damienbabington.com/portfolio? 

Also, how can I remove the black box that appears behind the dropdown menu? 

Add to Settings > Developer Tools > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
<script>
$(document).ready(function() { 
		$('a.header-nav-folder-title[href="/portfolio-1"]').click(function() {
			var link = $(this).text(),
				href = "damienbabington.com/portfolio";
			window.location.href=href;
		});
});
</script>

I don't see black box. Can you check it again?

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
15 hours ago, tuanphan said:

Add to Settings > Developer Tools > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
<script>
$(document).ready(function() { 
		$('a.header-nav-folder-title[href="/portfolio-1"]').click(function() {
			var link = $(this).text(),
				href = "damienbabington.com/portfolio";
			window.location.href=href;
		});
});
</script>

I don't see black box. Can you check it again?

I fixed the black box issue already. For the clickable folder title, is there any way to do it without Code Injection since my current plan doesn't allow me to use that? 

Link to comment
On 7/6/2023 at 6:52 AM, DameTheStoic said:

I fixed the black box issue already. For the clickable folder title, is there any way to do it without Code Injection since my current plan doesn't allow me to use that? 

You try edit your Site Footer > Add a Markdown Block > paste the code

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
  • 6 months later...

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.