[Support request] AMP plugin – Menu

Home Forums Support [Support request] AMP plugin – Menu

Home Forums Support AMP plugin – Menu

Viewing 15 posts - 1 through 15 (of 26 total)
  • Author
    Posts
  • #1019274
    Anders Nielsen

    The dropdown is not working using AMP and the AMP plugin in the main menu

    #1019355
    David
    Staff
    Customer Support

    Hi there,

    Tom created this plugin to resolve the issue mobile menu for AMP:

    https://github.com/tomusborne/amp-for-generatepress

    #1020593
    Anders Nielsen

    And is not working for the dropdown function.

    As I tried to write, I’m using the AMP plugin, and it’s not working!

    #1020996
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Just to confirm, you’re using the plugin that David linked to as well as the official AMP plugin? Both need to be activated in order for it to work.

    If they’re not working, can you link us to your site so I can take a look?

    Let me know πŸ™‚

    #1021048
    Anders Nielsen

    Yes, I use the two plugins, as David says πŸ™‚

    When you click a “#sub”-link in the menu, the menu “freezes” to the id=”site-navigation”

    using chrome/mac – maybe other browsers too.

    I have inserted a link.

    The schema data for the menu is also missing πŸ™‚

    #1021355
    Tom
    Lead Developer
    Lead Developer

    And it’s this plugin you’re using?: https://wordpress.org/plugins/amp/

    Is AMP always active? I’m not able to see the normal site and AMP site separately using /amp/ in the URL.

    #1021376
    Anders Nielsen

    And it’s this plugin you’re using?: https://wordpress.org/plugins/amp/

    – Yes

    Is AMP always active?

    Yes – The site is native AMP

    So the URL given in this tread is AMP πŸ™‚

    If you click the menu from a chrome browser (with the sub item) – you can see the issue

    #1021555
    Tom
    Lead Developer
    Lead Developer

    That’s strange – can you try this CSS?:

    nav:not(.toggled) .menu-item:not(:hover) button.dropdown-menu-toggle.toggled-on + .sub-menu {
        opacity: 0;
        visibility: hidden;
        height: 0;
    }
    
    nav:not(.toggled) button.dropdown-menu-toggle.toggled-on + .sub-menu {
        position: absolute;
        top: auto;
    }

    Let me know πŸ™‚

    #1021627
    Anders Nielsen

    Then the sub item(s) it not shown, when you hover the menu – when you are on an URL from the sub items.

    #1021970
    Tom
    Lead Developer
    Lead Developer
    #1021971
    Anders Nielsen

    Updated.. Still has issues πŸ™‚

    #1021987
    Tom
    Lead Developer
    Lead Developer

    How about now?

    #1021991
    Anders Nielsen

    Better, when you are on the page with the menu issues – the subitem changes width, and menu-word break in two lines

    #1021998
    Anders Nielsen

    Hmm, just testet on mobile, you can’t see the subitem in the menu now

    #1022062
    Anders Nielsen

    I removed the sub-items from the menu.

    I need the site to be up running for costumers πŸ™‚

Viewing 15 posts - 1 through 15 (of 26 total)
  • You must be logged in to reply to this topic.