â–Ľ
Streaming live at 10am (PST)

Can a TAB link scroll to a page section ID (update)?

Continuing the discussion from Can a TAB link scroll to a page section ID?:

I tried this method, but it did not work.

I want to create an interesting widget, it will be useful in the mobile version.

My brother figured it out, @serjgavriluk! This worked for me.

Add this script to the before </body> custom code area (page or project):

<script>
$(document).ready(function() {
  $('#TAB_1_ID, #TAB_2_ID, #TAB_3_ID').on('click', function(e) {
e.preventDefault();
window.location = '#GO_HERE';
  })
});
</script>

Just replace the TAB_1_ID etc with your tab’s IDs, and #GO_HERE with the ID of the place you want the tab to link to when clicked.

Best of luck!

1 Like

This worked perfectly. Thank you @jonreese!