Jump to content

HELP...Navigation Folder click trough link stoped working!!!

Recommended Posts

Hi,

in navigation menu I have Folder with pages in it, normally Folder wasn't clickable only submenu so few years ago I have added this code in to the folder title to make it clickable:

<a href="/indoor-moebel">INDOOR</a>

and it was working flawlessly till yesterday. On Brine template now opens up first page in a folder and on Supply template it does notting as it is by default...

Please help I really need this click trough function!!!

Thanks in advance

Link to comment
  • Replies 18
  • Views 2.1k
  • Created
  • Last Reply

Something has indeed changed because a number of users are reporting the same symptoms and the issue can be replicated. However, as nothing has been announced by Squarespace it isn't clear if this is a deliberate decision to close another HTML loophole (they started doing this in September 2018 to improve the security model) or whether this is an unexpected behaviour caused by something else.

It may be worth contacting Squarespace Customer Care to report the unusual behaviour in case it is symptomatic of a larger issue, but as they don't support code, I don't know how you'll fair. Do let us know.

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

@simplywhytedesign @dariokomazec There were quite a few people running into the problem so here's a quick tutorial that should help. 🙂

 

If an answer I provide helps you, please mark it as the answer so others can easily access it as well.

I'm a Squarespace Authorized TrainerSquarespace Expert, and Circle Member and I've been helping my clients as well as those here in the forum and in various Squarespace groups with custom coding and support for Squarespace websites. I would love to help you in any way I can.

Squarespace PluginsBook Live Help | Squarespace Video Tutorials | Buy Me a Coffee

Link to comment
  • 4 weeks later...

Same problem here. Squarespace Customer Care told me I was using custom code on my folders and they couldn't help me.

When you click on a folder in the navigation it now takes you to the first item in the folder. So if you add a link to the folder and make it the first item in the folder, clicking on the folder in the navigation will take you to that link.

If you don't want the link to show up in the submenu you can hide the first item of a folder with CSS. In the Brine template family it should be this code:

.Header-nav-folder :nth-child(1) {display: none !important;}


I hope this workaround will help you guys.
It's rather annoying that a workaround needs to be used, when Squarespace could simply add the option to add custom links to folders.

Link to comment
On 12/24/2019 at 7:08 AM, Vigasan said:

@simplywhytedesign @dariokomazec There were quite a few people running into the problem so here's a quick tutorial that should help. 🙂

 

Hi,

Tried following your video. I changed the class around but I can't seem to get it to work. One thing I noticed though, the class you used seems to have a different format than mine.     $(".folder-collection folder").eq(0).prop('href', '/projects'); Do I use it as is?

I'm using the Hudson template. Website is habitechsystems.com.au.

Thanks!

Link to comment
4 hours ago, bca88 said:

Hi,

Tried following your video. I changed the class around but I can't seem to get it to work. One thing I noticed though, the class you used seems to have a different format than mine.     $(".folder-collection folder").eq(0).prop('href', '/projects'); Do I use it as is?

I'm using the Hudson template. Website is habitechsystems.com.au.

Thanks!

Since your template doesn't have clicks on the folder name by default, you have to do it manually by using JQuery to wrap your folder name in <a> tags, and then setting the default <a> take to pointer-events: none so that only your manual tags can be clicked.

If an answer I provide helps you, please mark it as the answer so others can easily access it as well.

I'm a Squarespace Authorized TrainerSquarespace Expert, and Circle Member and I've been helping my clients as well as those here in the forum and in various Squarespace groups with custom coding and support for Squarespace websites. I would love to help you in any way I can.

Squarespace PluginsBook Live Help | Squarespace Video Tutorials | Buy Me a Coffee

Link to comment
18 hours ago, Vigasan said:

Since your template doesn't have clicks on the folder name by default, you have to do it manually by using JQuery to wrap your folder name in <a> tags, and then setting the default <a> take to pointer-events: none so that only your manual tags can be clicked.

The folder's class name is "folder-collection folder". I'm confused because of the space since classes i'm used to don't have spaces.

I added this to the home's code injection. Am I doing it right? it doesnt seem to do anything.

<script>
  $( ".folder-collection folder" ).wrap( "<a href=''></a>" );
</script>

Also, did I use the correct class name to get this to work? TIA! 🙂

Link to comment
21 hours ago, bca88 said:

The folder's class name is "folder-collection folder". I'm confused because of the space since classes i'm used to don't have spaces.

I added this to the home's code injection. Am I doing it right? it doesnt seem to do anything.

<script>
  $( ".folder-collection folder" ).wrap( "<a href=''></a>" );
</script>

Also, did I use the correct class name to get this to work? TIA! 🙂

you should provide site url. Difficult to check class without site url

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 1/23/2020 at 11:18 AM, bca88 said:

The folder's class name is "folder-collection folder". I'm confused because of the space since classes i'm used to don't have spaces.

I added this to the home's code injection. Am I doing it right? it doesnt seem to do anything.

<script>
  $( ".folder-collection folder" ).wrap( "<a href=''></a>" );
</script>

Also, did I use the correct class name to get this to work? TIA! 🙂

Classes don't have spaces. "folder-collection folder" means it has two classes. You can target either ".folder-collection" or ".folder".

If an answer I provide helps you, please mark it as the answer so others can easily access it as well.

I'm a Squarespace Authorized TrainerSquarespace Expert, and Circle Member and I've been helping my clients as well as those here in the forum and in various Squarespace groups with custom coding and support for Squarespace websites. I would love to help you in any way I can.

Squarespace PluginsBook Live Help | Squarespace Video Tutorials | Buy Me a Coffee

Link to comment
  • 2 months later...
  • 5 months later...
20 hours ago, SSong said:

Is there any way I can integrate the Lightbox Anything plugin into this, and trigger a lightbox/pop up when people click on the folder title?

Can you share site url? We can check easier.

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 10/1/2020 at 4:48 AM, SSong said:

fortsferryfarm.com, the "SHOP" folder, Brine Template.

Thank you!

 

Try add this to Code Injection Footer. Disable Ajax Loading if the code doesn't work.

<script>
$(document).ready(function() {
	$('.Header-nav-folder-title[href="/shop-all"]').attr('href','#lightbox>lightbox-page-url');
});
</script>

replace lightbox-page-url with the page where you create a lightbox

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 10/3/2020 at 3:05 AM, tuanphan said:

Try add this to Code Injection Footer. Disable Ajax Loading if the code doesn't work.


<script>
$(document).ready(function() {
	$('.Header-nav-folder-title[href="/shop-all"]').attr('href','#lightbox>lightbox-page-url');
});
</script>

replace lightbox-page-url with the page where you create a lightbox

What should I put down as the URL in the Folder setting? That field needs to be filled to be saved.

Link to comment

Archived

This topic is now archived and is closed to further replies.

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