Viewing 1 replies (of 1 total)
  • Hi @dandurston,

    So this particular task requires custom javascript to work. It’s entirely dependent on your theme and how it works. In your case, I think you want to do the following:

    1. Run a function when the page loads that checks for a hash in the current page URL.
    2. If the hash is the name of a tab, “click” that tab to activate the content.
    3. Scroll to that location on the page.

    The code you sent doesn’t do that. You also added it as a comment, so it won’t run. The solution in this thread should help: https://wordpress.org/support/topic/open-tab-with-anchor-link/

    Jon

Viewing 1 replies (of 1 total)

The topic ‘Linking to a specific tab’ is closed to new replies.