I’m using the plugin WP modal login, and everything is fine except that when it opens the page scrolls down ~200px.
I think it has something to do with Enfold’s header?
I tried it in other themes and it doesn’t do this.
Hard to explain, but just go to the site.
I’m not familiar with the plugin code but you must add a no-scroll class to the link. The link in the menu looks like
<a href="#login-box" class="login wpml-btn login-window">Login</a>
replace the code with
<a href="#login-box" class="login wpml-btn login-window no-scroll">Login</a>
How exactly do I change that? Would I look in the plugin files and find where it is creating that class and just add the “no-scroll” in?
Got it all figured out. Worked great. Thanks a million! I’ve been trying to figure that out for a while!
Quick question for future reference… Is the “no-scroll” specific to Enfold? or is that something I can put in other theme’s if I come across similar issues.
I guess I should ask if it theme specific.
Yes, the class is theme specific. It’s required because our theme tries to scroll to an element if it exists on the current page (otherwise we couldn’t create section links like here: http://www.kriesi.at/themes/enfold/homepage/home-v7-one-page-portfolio/ ) and if the user wants to deactivate this effect he can use the no-scroll class.
You must be logged in to reply to this topic.