Proposed Feature: Allow for hash links to go to open show-hide section on page
-
I have a page with multiple WP-ShowHide sections being used to have sections which are expandable/collapsible. I would love it if I could use the WP-ShowHide type as an ID for an anchor/hash link which then automatically opens that WP-ShowHide section when visited.
I was able to accommodate this for myself using:
if(window.location.hash){ // They entered this page with a hash in the URL $('div[id^="'+window.location.hash.replace('#','')+'"].sh-link.sh-hide').find('a').first().click(); }
I would love to see this officially supported in a plugin update.
Thanks for the great plugin!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Proposed Feature: Allow for hash links to go to open show-hide section on page’ is closed to new replies.