Skip to content

Instantly share code, notes, and snippets.

View kengarshridhar's full-sized avatar
🎯
Focusing

Shridhar Kengar kengarshridhar

🎯
Focusing
View GitHub Profile
@kengarshridhar
kengarshridhar / Readme.md
Last active March 10, 2026 07:07
Elementor Nested Tabs – Open specific tab using URL hash.

This script enables direct linking to Elementor Nested Tabs using URL fragments such as:

/page/#architectural /page/#composite

When the page loads, the script reads window.location.hash and automatically triggers the corresponding Elementor tab button using its ID. This approach relies on Elementor's native click event, ensuring proper activation of tab states (aria-selected, tabindex, and active classes) without manually modifying DOM attributes.

Features:

  • Works with Elementor Nested Tabs widget
  • Supports direct linking and page redirects