- This topic has 25 replies, 5 voices, and was last updated 2 years, 2 months ago by
Tom.
-
AuthorPosts
-
September 25, 2019 at 11:15 pm #1019274
Anders Nielsen
The dropdown is not working using AMP and the AMP plugin in the main menu
This is my sites: https://www.generaliseret-angst.dk/
https://www.angst.dk/September 26, 2019 at 2:06 am #1019355David
StaffCustomer SupportHi there,
Tom created this plugin to resolve the issue mobile menu for AMP:
https://github.com/tomusborne/amp-for-generatepress
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 27, 2019 at 9:02 am #1020593Anders 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!
This is my sites: https://www.generaliseret-angst.dk/
https://www.angst.dk/September 27, 2019 at 7:29 pm #1020996Tom
Lead DeveloperLead DeveloperHi 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 π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 27, 2019 at 11:06 pm #1021048Anders 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 π
This is my sites: https://www.generaliseret-angst.dk/
https://www.angst.dk/September 28, 2019 at 9:28 am #1021355Tom
Lead DeveloperLead DeveloperAnd 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.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 28, 2019 at 10:08 am #1021376Anders 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
This is my sites: https://www.generaliseret-angst.dk/
https://www.angst.dk/September 28, 2019 at 7:14 pm #1021555Tom
Lead DeveloperLead DeveloperThat’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 π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 29, 2019 at 12:03 am #1021627Anders Nielsen
Then the sub item(s) it not shown, when you hover the menu – when you are on an URL from the sub items.
This is my sites: https://www.generaliseret-angst.dk/
https://www.angst.dk/September 29, 2019 at 9:14 am #1021970Tom
Lead DeveloperLead DeveloperCan you try the updated code?: https://generatepress.com/forums/topic/amp-plugin-menu/#post-1021555
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 29, 2019 at 9:16 am #1021971Anders Nielsen
Updated.. Still has issues π
This is my sites: https://www.generaliseret-angst.dk/
https://www.angst.dk/September 29, 2019 at 9:27 am #1021987Tom
Lead DeveloperLead DeveloperHow about now?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentSeptember 29, 2019 at 9:30 am #1021991Anders Nielsen
Better, when you are on the page with the menu issues – the subitem changes width, and menu-word break in two lines
This is my sites: https://www.generaliseret-angst.dk/
https://www.angst.dk/September 29, 2019 at 9:39 am #1021998Anders Nielsen
Hmm, just testet on mobile, you can’t see the subitem in the menu now
This is my sites: https://www.generaliseret-angst.dk/
https://www.angst.dk/September 29, 2019 at 12:26 pm #1022062Anders Nielsen
I removed the sub-items from the menu.
I need the site to be up running for costumers π
This is my sites: https://www.generaliseret-angst.dk/
https://www.angst.dk/ -
AuthorPosts
- You must be logged in to reply to this topic.