Jeweetzelf
Jeweetzelf

Reputation: 65

Why do my menu items activate a scroll function?

I used the 'Page scroll to id' plugin for Wordpress to set up a one scroll page where the menu items let you scroll through the section. I noticed the animation wasn't working, which had been the case for a few other websites I worked on in the past. Strange enough, unchecking the option 'activate on menu-items' did the trick back then and made the animation work. However, this time is different. I checked the general forum for this plugin on Wordpress.org to troubleshoot this and I later deactivated the plugin to try to make it work with a simple jQuery function.

After those attemps I noticed that the menu items were still letting me scroll through the page, even though I removed my function and deactivated the plugin. I cleared my browser cache and installed WP Super Cache to delete any cache from the website itself. Neither of these did the trick.

I have no idea what makes the menu items scroll through the page, but it overrides any workaround I attempted to get an animated scroll function. There aren't any plugins installed at this moment. Does anyone know what might be causing this?

Edit: I tried a couple of things:

This makes me think there now is a jump/scroll function in either the parent theme or the WP installation itself, which is weird because this shouldn't be standard. (let alone impossible to override)

Upvotes: 0

Views: 76

Answers (3)

Jeweetzelf
Jeweetzelf

Reputation: 65

Found the problem. The line "get_footer();" wasn't there in the front-page.php, which is the obvious reason that no function in the footer worked. But it was also conflicting with the animation of the Page Scroll To ID plugin, which is very unexpected.

Upvotes: 0

Marco Romano
Marco Romano

Reputation: 456

Could be still stetting #id in the menu, try to check the Menu inside appearance.

Other things you can do it's delete the tables of the plug-in in the DB. when you uninstall the plug-in form wp, the tables in the db still exits, it's difficult but cold be that.

Also you can check if you have really delete all the jQuery script from all files and founder.

Upvotes: 1

user7024289
user7024289

Reputation:

Just to clarify, do you mean the animated scroll on click, or the jump on click? I get a jump because of your anchor links in your nav, but I'm not getting an animated scroll (like a smooth scroll effect) over here.

Upvotes: 0

Related Questions