Hi, thanks for trying my plugin! 🙂
1. You can give the menu a background color when it’s sticky by adding something like this to your CSS:
.sticky-element-original {
background:#1c1c1c;
}
2. When I look at your page, I don’t see this gap that you’re talking about. Can you elaborate where you see it exactly?
3. On your home page, I can see there’s a JavaScript error related to another plugin called “My Sticky Menu” (I assume that’s another plugin you tried for this purpose):
Uncaught SyntaxError: Failed to execute 'querySelector' on 'Document': The provided selector is empty.
This error might be blocking my plugin from working properly. Try to disable and see if that works.
Let me know if this helps! 🙂
im facing similar to the second issue. upon login there is gap on top of menu. can you please help me resolve it
@wesley_durai I’ll need to see a link to your site and a more specific description of your issue. Can you please create a new thread and include those details?
Thanks!
sorry for late reply..my pc was getting fixed. any way here is the blog
http://aniframes.com/blog/
only when logged in there is a gap between wordpress bar and menu at the top of the page.
@wesley_durai I wouldn’t be able to see the problem unless I am logged in, so if you need me to take a look at it, please create a user for me with minimal rights.
More importantly though, it looks like my plugin is not active on your site to begin with, but the menu is sticky anyway. Perhaps you’re using a different plugin?
-
This reply was modified 9 years, 6 months ago by
Senff - a11n.
-
This reply was modified 9 years, 6 months ago by
Senff - a11n.
[email protected]
password: sky123
true i had to deactivate coz of the problem but now i have activated it again plsss take a look
Hi,
I see that the plugin is activated now, but it doesn’t have any effect. In the plugin settings, you’ve selected the element “.Menu 1”, but there is no element with that class (also, classnames can not contain spaces or start with numbers).
The menu IS sticky though, so there is another plugin (or theme feature) that’s making it stick at the top of the screen, and so the gap you’re seeing is unrelated to my plugin.
I can see that the menu changes from position:relative to position:fixed. When it’s relative, the menu bar will be 32px lower than it’s “normal” state (which is at the very top) but when it’s fixed, it will be 32px from the top of the screen. Ideally, you would only want the top:32px property when it’s in fixed mode.
But again, this is all unrelated to my plugin, so you might want to check the other plugin’s settings. If you can disable it, then my plugin could be more helpful, since it has a built-in mechanism that checks if there’s an admin bar or not.