- This topic has 8 replies, 3 voices, and was last updated 3 years, 11 months ago by Tom.
-
AuthorPosts
-
March 20, 2020 at 9:26 am #1200828EDWARD
Hey guys,
I’m currently using the AMP for GP and AMP plugin, and have a custom HTML menu in place for mobile. Currently, the mobile menu for GP continues to appear even when it is turned off in the customization settings. This is showing 2 menu options now (amp menu html and GP menu0. I’ve gone through the checklist disabling all plugins and clearing cache but it did no help.
Screen shot:
Here’s the code for my menu:
<!– Start Navbar –>
<header class=”ampstart-headerbar fixed flex justify-start items-center top-0 left-0 right-0 pl2 pr4″>β°</header>
<!– Start Sidebar –>
<amp-sidebar id=”header-sidebar” class=”ampstart-sidebar px3 ” layout=”nodisplay”>β<nav class=”ampstart-sidebar-nav ampstart-nav”>
<ul class=”list-reset m0 p0 ampstart-label”>
<li class=”ampstart-nav-item ampstart-nav-dropdown relative”>
<li class=”ampstart-nav-item”>Home
<!– Start Dropdown-inline –>
<amp-accordion layout=”container” disable-session-states=”” class=”ampstart-dropdown”>
<section> <header>Practice</header> <ul class=”ampstart-dropdown-items list-reset m0 p0″> <li class=”ampstart-dropdown-item”> DUI Charges <li class=”ampstart-dropdown-item”> Civil Forfeiture
<li class=”ampstart-dropdown-item”> Personal Injury <li class=”ampstart-dropdown-item”> Drug Charges <li class=”ampstart-dropdown-item”> Murder Charges <li class=”ampstart-dropdown-item”> Theft Charges <li class=”ampstart-dropdown-item”> Weapon Charges <li class=”ampstart-dropdown-item”> Civil Rights Litigation Attorney <li class=”ampstart-dropdown-item”> Drivers License Reinstatement <li class=”ampstart-dropdown-item”> Expungment </section> </amp-accordion>
<!– End Dropdown-inline –>
<!– Start Dropdown-inline –> <amp-accordion layout=”container” disable-session-states=”” class=”ampstart-dropdown”> <section> <header>About The Firm</header> <ul class=”ampstart-dropdown-items list-reset m0 p0″> <amp-accordion layout=”container” disable-session-states=”” class=”ampstart-dropdown”>
<section>
<header>Attoneys</header> <ul class=”ampstart-dropdown-items list-reset m0 p0″> <li class=”ampstart-dropdown-item”>Edward D Johnson III
<li class=”ampstart-dropdown-item”>Bennett Wilcosky<li class=”ampstart-dropdown-item”>Shayl Wilson
</section>
</amp-accordion>
<amp-accordion layout=”container” disable-session-states=”” class=”ampstart-dropdown”>
<section>
<header>Trial</header>
<ul class=”ampstart-dropdown-items list-reset m0 p0″>
<li class=”ampstart-dropdown-item”>Investigations
<li class=”ampstart-dropdown-item”>Rehabilitation
<li class=”ampstart-dropdown-item”>Exhibits
</section>
</amp-accordion></section>
</amp-accordion><amp-accordion layout=”container” disable-session-states=”” class=”ampstart-dropdown”>
<section>
<header>Blog</header>
<ul class=”ampstart-dropdown-items list-reset m0 p0″>
<li class=”ampstart-dropdown-item”>Keep Your Driving Privileges After a DUI Conviction
<li class=”ampstart-dropdown-item”>The Illinois Department of Children and Family Services
<li class=”ampstart-dropdown-item”>Perjury Problem | Update on Chicago Police
<li class=”ampstart-dropdown-item”>Pro Bono
<li class=”ampstart-dropdown-item”>Edward Johnson P.C | Law Office Locations
<li class=”ampstart-dropdown-item”>Defense Team Chicago
<li class=”ampstart-dropdown-item”>News</section>
</amp-accordion>
<li class=”ampstart-nav-item”>Criminal Law Resources<amp-accordion layout=”container” disable-session-states=”” class=”ampstart-dropdown”>
<section>
<header>Contact</header>
<ul class=”ampstart-dropdown-items list-reset m0 p0″>
<li class=”ampstart-dropdown-item”>Offices</section>
</amp-accordion><!– End Dropdown-inline –>
</nav>
</amp-sidebar>
<!– End Sidebar –>
<!– End Navbar –>March 20, 2020 at 9:52 am #1200844EDWARDLet me know if I need to disable anything prior to review.
Thanks again for the help!
March 20, 2020 at 4:27 pm #1201103TomLead DeveloperLead DeveloperHi there,
How are you disabling the navigation? In the Customizer?
We do add a menu toggle for AMP specifically, but it’s added inside the navigation: https://github.com/tomusborne/amp-for-generatepress/blob/master/amp-for-generatepress.php#L251
If the navigation is turned off, it shouldn’t display.
Let me know π
March 21, 2020 at 2:55 pm #1202127EDWARDI’ve disabled the Generatepress Menus from the modules section and mobile menu in the customize section but am still seeing the ‘Mobile’ menu displaying under the logo.
March 22, 2020 at 8:41 am #1206175TomLead DeveloperLead DeveloperThose are just modules, which add options to your site. They won’t deactivate anything on the site, really.
Are you wanting to disable only the mobile menu or the entire navigation?
April 17, 2020 at 12:38 pm #1243420EDWARDThanks!
April 17, 2020 at 4:17 pm #1243588TomLead DeveloperLead DeveloperNo problem! π
May 23, 2020 at 10:37 am #1298318LucianoHi guys ! I’m curious about the results. Were you able to get the “amp-sidebar” working with the theme ? I’ve checked the amp sidebar demo and it’s really the look & feel I wish I could have using AMP together with Generatepress.
May 23, 2020 at 4:44 pm #1298592TomLead DeveloperLead DeveloperIt would be cool to replace our off-canvas panel with that on AMP.
I’ll definitely look into it π
-
AuthorPosts
- You must be logged in to reply to this topic.