-
Notifications
You must be signed in to change notification settings - Fork 5
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
Feature request: Allow media query settings for offset amount + more #17
Comments
Thank you - just a formatting error I would like to point out in your post - at some point in my text which you have copied and pasted, the word " |
Thanks for that. Fixed and code quoted so it won't be missed. |
*bump Still interested in this feature and watching intently. Please don't forget about this request. :) |
It's not forgotten as a whole, but I must admit we also don't have anyone actively working on the plugin at the moment either, as it's not presently a high priority item. |
Alternative ideas here, after recent forum support requests. Provide an option to specify a selector, say |
Context of the problem: One of the commonest uses of this plugin will be to offset same-page hyperlink jumps due to a fixed menu bar at the top which needs to be compensated for, or else the anchored content will appear behind the fixed menu bar.
Because the fixed menu itself is often responsive, its height will vary (one-line menu bar becomes two lines for smaller screens), and therefore the hash link scroll offset will need to vary accordingly also.
Some websites also disable the fixed menu for mobile screens, and in that case, the hash link scroll offset should be disabled for mobile screens.
Suggested solution (manually determine offset conditions): Please add a feature which allows media queries to be added to vary the offset amount (px) according to screen width. It should be possible to add as many media queries as needed.
Extended solution (automatically determine offset conditions): Even better if you could allow users to link the offset value (px) to the height of fixed menu bar in question, by adding a plugin setting field in which users can specify the class or id of the
<div>
that represents the fixed menu. That way, the offset can be automatically determined by the height of the fixed menu.The text was updated successfully, but these errors were encountered: