Title: Not work with Mega Menu
Last modified: August 31, 2016

---

# Not work with Mega Menu

 *  Resolved [christinatag](https://wordpress.org/support/users/christinatag/)
 * (@christinatag)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/not-work-with-mega-menu/)
 * Hi. I love this plugin, I’ve used it mostly with links on pages and it works 
   wonderfully. I’m trying to use it with Max Mega Menu plugin and I’m placing “
   m_PageScroll2id” in the Link Relationship (XFN) on the menu item but its not 
   working. It works great though when I use it on a link within the page.
 * [site](http://taglineadagency.com/4DTechnology/)
 * [link that is not working from the menu only](http://taglineadagency.com/4DTechnology/optical-component-applications/#plano-optics)
 * [https://wordpress.org/plugins/page-scroll-to-id/](https://wordpress.org/plugins/page-scroll-to-id/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/not-work-with-mega-menu/#post-7456717)
 * Hi,
 * I think you need to enable “Scroll to location hash” option in plugin settings
   and probably also check “Enable for all targets” below it. This option enables
   scrolling to location hash (`#`) on page load. For detailed info on these options
   see “Plugin settings” in contextual help menu at the top of the page.
 *  Thread Starter [christinatag](https://wordpress.org/support/users/christinatag/)
 * (@christinatag)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/not-work-with-mega-menu/#post-7456817)
 * That was it!!! Thanks!
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/not-work-with-mega-menu/#post-7456864)
 * You’re welcome 🙂
 * Marking this as resolved.
 *  [savinichsasha](https://wordpress.org/support/users/savinichsasha/)
 * (@savinichsasha)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/not-work-with-mega-menu/#post-9164635)
 * Hello Malihu! I am still trying to fix my menu problem on [http://candyqueen.org](http://candyqueen.org)
   
   I swapped the theme menu with max mega menu, and now there is no errors. But 
   scrolling doesn’t work as it should. I found this topic, and I wonder should 
   I add something in xfn links? The folowing settings in the plugin are enabled:
 * Enable on WordPress Menu links (Automatically enable the plugin on custom links(
   containing # in their URL))
    Scroll from/to different pages (i.e. scroll to target
   when page loads)
 * Scrolling works when you go from ‘ask me’ to the rest on the menu items. but 
   if you switch between first three, it only jumps without scrolling.
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/not-work-with-mega-menu/#post-9165441)
 * Hello,
    It seems that mega menu prevents “Enable on WordPress Menu links” from
   working (not sure if mega menu is indeed a WordPress menu or a completely different
   custom menu).
 * The quickest way to enable the plugin on the mega menu links is to go to “Page
   scroll to id” settings and change the “Selector(s)” field value to:
 * `a[rel='m_PageScroll2id'], a.mega-menu-link[href*=#]:not([href=#])`
 * Save changes and test 😉
 * Another way would be to add the value `m_PageScroll2id` on the XFN field on each
   of your mega menu items or the `ps2id` value in the class field (if those fields
   exist in mega menu builder page).
 *  [savinichsasha](https://wordpress.org/support/users/savinichsasha/)
 * (@savinichsasha)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/not-work-with-mega-menu/#post-9168122)
 * Great! Selectors work.
    Max mega Menu is a plugin which takes existing menu and
   makes it more manageable. Thank you so much, Malihu!
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/not-work-with-mega-menu/#post-9168223)
 * [@savinichsasha](https://wordpress.org/support/users/savinichsasha/) Great 🙂
 * It seems then that since mega menu overwrites WordPress menu walker function,
   the “Enable on WordPress Menu links” option cannot work. The other 2 ways (XFN
   and class field values) should normally work (unless mega menu does not include
   these attributes in its output).
 * The “Selector(s)” value will of course always work (as it’s applied on the client-
   side).
 * Thanks a lot for your review 🙂
 *  [savinichsasha](https://wordpress.org/support/users/savinichsasha/)
 * (@savinichsasha)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/not-work-with-mega-menu/#post-9168291)
 * You are welcome 🙂

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Not work with Mega Menu’ is closed to new replies.

 * ![](https://ps.w.org/page-scroll-to-id/assets/icon-256x256.png?rev=1401043)
 * [Page scroll to id](https://wordpress.org/plugins/page-scroll-to-id/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/page-scroll-to-id/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/page-scroll-to-id/)
 * [Active Topics](https://wordpress.org/support/plugin/page-scroll-to-id/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/page-scroll-to-id/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/page-scroll-to-id/reviews/)

## Tags

 * [max mega menu](https://wordpress.org/support/topic-tag/max-mega-menu/)

 * 8 replies
 * 3 participants
 * Last reply from: [savinichsasha](https://wordpress.org/support/users/savinichsasha/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/not-work-with-mega-menu/#post-9168291)
 * Status: resolved