Skip to content

Instantly share code, notes, and snippets.

@cdsaenz
Forked from AmmarCodes/README.md
Created March 20, 2024 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdsaenz/dbb8466a8d3ff0189de09c52daba7437 to your computer and use it in GitHub Desktop.
Save cdsaenz/dbb8466a8d3ff0189de09c52daba7437 to your computer and use it in GitHub Desktop.
WordPress: link to specific elementor tab on a specific page

It's a quick ad-hoc solution to allow you to link to your page to a specific tab from elementor tabs widget.

Here's the catch, you need to replace the id of the specific tab you want to use to not contain the title- part.

Use https://your-website/#elementor-tab-1515

instead of: https://your-website/#elementor-tab-title-1515

Make sure you add the JavaScript code in the footer, so it loads after the elementor tabs widget, otherwise the elementor tabs widget code will override what we're trying to acheive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment