Viewing 5 replies - 1 through 5 (of 5 total)
  • To wearychef, Your menu works fine for me!

    Plugin Contributor lamvt

    (@lamvt)

    Menu Works Fine,please check it again

    I am having the same issue on the latest version. Clicking links just closes the menu

    For the above using the latest version of WP (4.5.1) and latest version of plugin

    To get mine to work I took the my-lightbox.close function and attached it to a button instead of the lightbox. It kept registering the close click instead of the link click.

    Changed the code to:

    `public function add_mobile_menu( $content ) {
    $show_main_amp_menu = get_option(‘show_main_amp_menu’);
    $htmls = ”;
    $htmls .= ‘<button class=”amp-button” on=”tap:my-lightbox” tabindex=”0″>☰</button><amp-lightbox id=”my-lightbox” layout=”nodisplay”><div class=”lightbox” role=”button” tabindex=”0″>’;
    $htmls .= $this->clean_custom_menu($show_main_amp_menu);
    $htmls .= ‘<div class=”close-btn” role=”button” on=”tap:my-lightbox.close”></div>’
    $htmls .='</div></amp-lightbox>’;
    //$htmls .= get_option(‘custom_content_width’);
    $content .= $htmls;
    return $content;
    }`

    And then added styling for class close-btn as well as an image and positioned it in the top right corner (position absolute)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Menu links not working?’ is closed to new replies.