Skip to content
Home > Posts > Anchor-link to a Specific Item in a Tab or Accordion Module

Anchor-link to a Specific Item in a Tab or Accordion Module

You can link to a specific item in the Tabs or Accordion module by setting a custom CSS ID for the module, then using that item’s index in the anchor link.

Note: Indexes start at 0 for the first item in the list, so the first item is 0, the second item is 1, and so on.

To link to a specific item in a Tabs or Accordion module

Using the Beaver Builder Standard Modules:

  1. Open the module for editing and click the Advanced tab.
  2. In the ID field, set a unique ID name for the module. See the related links for more information about ID selectors.
  3. Link to any item in that module by specifying the module’s ID with the item’s index, separated by a hyphen.
beaver builder standard tabs module

For example, you want to create a link that will open the second tab in a tabs module, and you have added an ID name of my-tabs in the Tabs Advanced section.
The anchor to add to the end of the URL when linking to open the second tab is #my-tabs-1.


UABB advanced accordion module

Using UABB’s Advanced Accordion Module:

  • Step 1: Open the Advanced accordions module settings and go to the settings tab.
  • Step 2: Change “expand first item” to “no“. Once this is done, the module will automatically apply IDs to the accordion items starting with “tab-0
  • Step 3: Click on the save button to save the changes.
  • Step 4: Go to the anchor button and enter the link as : /[ page name ]/#[ tab-0,1,2,3,4,etc. ]

Important Tip:

This technique may not be the best option if the site has a sticky nav enabled or an overlaying header, especially if the entire header is sticky and taller than it should be. In the case of sticky headers, the accordion or tab anchor will open touching the very top of the screen, and a sticky or overlaying header will cover it. Use this technique as a possible solution to this issue.


Sources: https://kb.wpbeaverbuilder.com/article/52-link-to-specific-item-in-tabs-or-accordion-module

Scroll To Top