- This topic has 18 replies, 2 voices, and was last updated 3 years, 10 months ago by Tom.
-
AuthorPosts
-
May 25, 2020 at 2:58 pm #1301209David
How can I insert the code that displays the main menu of header in a toggle menu that I want to place in a hero section in the content area?
Can you help me, regards!
May 26, 2020 at 10:51 am #1302434TomLead DeveloperLead DeveloperHi there,
I’m not sure I understand – can you explain a bit more/link us to an example?
Thanks!
May 26, 2020 at 1:47 pm #1302618DavidHi Tom, look at this screenshot:
https://www.maseformacion.es/topic/
I want is to give the user the option to click a toggle menu that I’m going to place in a section within the content of the page that displays the same menu that displays the toggle menu that is in the header.
Then the user can display the menu in the header as usual and can also display it in another section where I will place that new button to display the menu.
Is this possible?
Thanks!
May 26, 2020 at 4:08 pm #1302745TomLead DeveloperLead DeveloperTo be honest, I’m not sure!
Give it a shot:
<button class="menu-toggle in-content-toggle" data-nav="mobile-header">Toggle</button>
Then add this CSS:
button.menu-toggle.in-content-toggle { color: inherit; display: block; }
May 27, 2020 at 7:13 am #1303442DavidThank you, Tom
….It doesn’t seem to be working.
I add these lines directly to the content, right?
May 27, 2020 at 10:12 am #1303840TomLead DeveloperLead DeveloperYou would add it as an HTML block. Any chance I can see it added?
May 27, 2020 at 11:29 am #1303929DavidThat’s how I had it.
Look at this link to the administration page and the view:
https://hotel.magentapublicidad.com/explica/
Right now if you see the website in the home page I have an addon that puts me that bottom and displays a full screen menu.
But I’d rather use the GP menus.
May 27, 2020 at 4:36 pm #1304215TomLead DeveloperLead DeveloperAre you wanting to open our Off-Canvas Panel or the standard mobile menu?
May 28, 2020 at 12:33 am #1304514DavidThat’s idea!
I’m sorry because I didn’t make myself clear before.
Look at this link:
https://hotel.magentapublicidad.com/menus-ok/
I want to use GP’s mobile menu but also put a menu in the content so that that menu is also displayed.
Now I have an addon that launches a full screen menu but it’s not the same menu as GP
You can see it on the front page:
May 28, 2020 at 9:43 am #1305313TomLead DeveloperLead DeveloperAh, so that’s the standard mobile menu.
Where can I see the page with the toggle I provided HTML for?
May 28, 2020 at 1:34 pm #1305554DavidPage containing the code you gave me is:
https://hotel.magentapublicidad.com/boton/
button above the photo on the cover that launches the full screen menu is from the PowerPavk elements plugin
My idea is to replace it; put a button that launches the GP mobile menu.
Thank very much for your help : )
May 28, 2020 at 2:49 pm #1305627TomLead DeveloperLead DeveloperCan you try the updated HTML and CSS above?: https://generatepress.com/forums/topic/toggle-menu-in-a-hero-section-in-the-content/#post-1302745
May 29, 2020 at 1:44 am #1306002DavidNow with classes it appears, but it doesn’t display menu:
May 29, 2020 at 9:12 am #1306638TomLead DeveloperLead DeveloperYou need to update the HTML as well.
May 29, 2020 at 10:59 am #1306818DavidSorry… AWESOME!!
Thanks, thanks, thank you for your patience ; )
-
AuthorPosts
- You must be logged in to reply to this topic.