Streaming live at 10am (PST)

Why Isn't this tab linking working?


#1

Hi Guys,

I've tried everything to get the custom code to work so that when clicking one of the 'lego brick' nav links, the relevant tab will display, following various instructions on this thread: http://forum.webflow.com/t/linking-to-specific-tab-from-another-link-or-button/3665
and other similar threads but to no avail.

At the moment I'm just trying to configure for the viewall tab and then replicate the code for the others once I get it working!

I currently have:

<script>
    $(function(){
        $('#viewall-button').click(function(){
            $('#viewalltab').click();
        });
    });
</script>

in the footer code, and have given the tablink the id of 'viewalltab' and the navlink the id of 'views-button', am i missing something?

Can anyone please help me?
https://preview.webflow.com/preview/brickscene?preview=f03accbdbb7d283304da70476eade151

Thanks,
Adam


#2

Okay, I think it's not working because I nested the nav menu in a div.


#3

Okay, I've worked around this and just used link blocks in a div, on investigation it wouldn't work when nested in a nav menu... if anyone knows how to enable within a nav menu feel free to post. [sharing link now disabled]


#4

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.