Title: Menu Link Not Working
Last modified: June 14, 2021

---

# Menu Link Not Working

 *  Resolved [Miss](https://wordpress.org/support/users/dorabet/)
 * (@dorabet)
 * [5 years ago](https://wordpress.org/support/topic/menu-link-not-working-2/)
 * these Last few days, i tried to use AMP plugin for my site
    but still cant find
   the solution for the link on the menu at first i thought its one of the plugin
   fast velocity minify, so i disable it = no luck i even disable all the plugin
   = no luck
 * im not a tech savy so i really need some help here
 * Thanks a lot
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmenu-link-not-working-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years ago](https://wordpress.org/support/topic/menu-link-not-working-2/#post-14553300)
 * Thanks for reaching out. From looking at your site it looks like your navigation
   menu dropdown is JavaScript based. With custom JavaScript is restricted to [amp-script](https://amp.dev/documentation/components/amp-script/)
   and other components it’s expected that it won’t work in AMP by default if the
   theme developer hasn’t provided any fallback.
 * While you can reach out to your theme developer and ensure about AMP support 
   you can also use the AMP plugins [reader mode](https://amp-wp.org/documentation/getting-started/reader/),
   allowing you to select a different AMP compatible theme for your AMP URLs, with
   your non AMP URLs not impacted.
 * If making a suggestion to your theme developer regarding AMP compatible you may
   also find the [Toggling Hamburger Menus documentation page](https://amp-wp.org/documentation/playbooks/toggling-hamburger-menus/)
   useful.
 * If you want to also share the theme you’re using I can check and see if it’s 
   something we can inspect from our side.
 *  Thread Starter [Miss](https://wordpress.org/support/users/dorabet/)
 * (@dorabet)
 * [5 years ago](https://wordpress.org/support/topic/menu-link-not-working-2/#post-14557712)
 * Hi James thanks for the reply
    since im not familiar with amp so i ve read about
   hamburger menu from other site [https://code.tutsplus.com/tutorials/code-a-burger-menu-for-mobile-users-in-wordpress–cms-33176](https://code.tutsplus.com/tutorials/code-a-burger-menu-for-mobile-users-in-wordpress–cms-33176)
 * jQuery(document).ready(function() {
    jQuery(‘.toggle-nav’).click(function(e) {
   jQuery(‘.menu.main ul’).slideToggle(500);
 *  e.preventDefault();
    });
 * });
 * so it will not work too with amp if with js right ?
 * and yes i dont mind to share the theme, how can i send it to you ?
 *  [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years ago](https://wordpress.org/support/topic/menu-link-not-working-2/#post-14557843)
 * > so it will not work too with amp if with js right ?
 * Correct, that snippet above won’t work.
 * > and yes i dont mind to share the theme, how can i send it to you ?
 * Providing the theme is available on the WordPress theme repository or publicly
   available elsewhere feel free to share the link. We can then check the theme 
   and see if we can apply a fix.
 *  Thread Starter [Miss](https://wordpress.org/support/users/dorabet/)
 * (@dorabet)
 * [5 years ago](https://wordpress.org/support/topic/menu-link-not-working-2/#post-14559173)
 * Hi
    my mistake, i thought i can send the theme to you to share my theme to public
   im afraid not possible at the moment
 *  [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years ago](https://wordpress.org/support/topic/menu-link-not-working-2/#post-14559511)
 * I understand. In that case please download, install and activate the [AMP Generic Compatibility plugin](https://github.com/milindmore22/amp-generic-compat/)
   before navigating to “_AMP Compatibility -> JS -> Enable JS_“. From there paste
   the below code:
 *     ```
       const navigationChange = () => {
           const button = document.getElementById('responsive-menu');
           button.addEventListener('change', (e) => {
             const select = e.target;
             const value = select.value;
             const theURL = select.options[select.selectedIndex].value;
             var theLink = document.querySelectorAll('[href*="'+theURL+'"]');
             theLink[0].click();
           });
       }
       navigationChange();
       ```
   
 * Please then save before checking your AMP URLs once more. Let me know how you
   get on after testing that.
 *  Thread Starter [Miss](https://wordpress.org/support/users/dorabet/)
 * (@dorabet)
 * [5 years ago](https://wordpress.org/support/topic/menu-link-not-working-2/#post-14561473)
 * Hello again James
    after i install AMP Generic Compatibility plugin still no 
   luck 🙁
 * i dont think i can fix this myself James
    after you look at our site, the structure
   etc, is it possible for us to hire freelancer to fix this ?
 * or this theme cant be fix ?
 * Thanks James
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [5 years ago](https://wordpress.org/support/topic/menu-link-not-working-2/#post-14562942)
 * Hello [@dorabet](https://wordpress.org/support/users/dorabet/)
 * Thanks for testing the code, I will recommend switching to [Reader Mode](https://amp-wp.org/documentation/getting-started/reader/)
   and choosing an AMP Compatible theme (You can default WordPress themes or themes
   like Astra or Neve) for AMP pages. It will be a cost-effective way to tackle 
   all incompatibilities from the theme.
 * Alternatively, you can look for professional help, we recommend checking out 
   some of the [AMP Experts](https://amp-wp.org/ecosystem/amp-experts/) from our
   site.
 *  Thread Starter [Miss](https://wordpress.org/support/users/dorabet/)
 * (@dorabet)
 * [5 years ago](https://wordpress.org/support/topic/menu-link-not-working-2/#post-14564303)
 * Hi Milind
 * thanks for your suggestion to use the reader mode and change theme
    and about
   your amp expert, i ll look into it
 * Thanks again, very nice support from both of you
 *  [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years ago](https://wordpress.org/support/topic/menu-link-not-working-2/#post-14570830)
 * Not a problem, happy to help. If you have any further reader mode questions going
   forward be sure to reach out by opening a support topic.

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

The topic ‘Menu Link Not Working’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

## Tags

 * [Amp Link](https://wordpress.org/support/topic-tag/amp-link/)

 * 9 replies
 * 3 participants
 * Last reply from: [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/menu-link-not-working-2/#post-14570830)
 * Status: resolved