Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The 'Shortcodes' header and the 'Hooks' > 'shortcodes' subheader use the same href anchor #33

Open
Stijn-B opened this issue Jul 26, 2022 · 0 comments

Comments

@Stijn-B
Copy link
Contributor

Stijn-B commented Jul 26, 2022

The 'Shortcodes' header (img 1) and 'Hooks' > 'shortcodes' subheader (img 2) both use the same href anchor (https://elderguide.com/tech/elderjs/#shortcodes). Because the 'Hooks' one appears first on the page, when trying to navigate to the 'Shortcodes' header you are directed to the 'Hooks' > 'shortcodes' subheader instead.

A possible fix could be to change the ids/anchors of the 'Hooks' subheaders from <name> to <name>-hook (changing the Shortcodes hook anchor to #shortcodes-hook.
They are however generated by the {{output_hook_list}} shortcode and I don't know how to update this.

image 1
image

image 2
image

@Stijn-B Stijn-B changed the title 'Hooks' > 'shortcodes' and the heading 'Shortcodes' have the anchor The 'Hooks' > 'shortcodes' subheader and the 'Shortcodes' header use the same href anchor Jul 26, 2022
@Stijn-B Stijn-B changed the title The 'Hooks' > 'shortcodes' subheader and the 'Shortcodes' header use the same href anchor The 'Shortcodes' header and the 'Hooks' > 'shortcodes' subheader use the same href anchor Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant