Archived topic
Primary and Secondary Navigation
3 replies · Started by Himanshu on May 4, 2021
Hi,
My Primary menu has 3 social icons at the end, which I want to move to another line just above the menu, both floated right.
I tried to do that with creating a social menu and setting it to secondary nav, and then following this code to have the secondary nav above the primary one but that didn't work. Could it be because the code is old? Is there a new fix that will put the secondary nav above the primary, both floating right?
EDIT: I managed to get them above with Header Widget. How do I now get them to be in the Off Canvas Menu? Right now, they are displaying separately outside. One quick fix I can think of is to have a totally another menu for Off Canvas with social icons included, and hide the widgets on mobile. Is this correct or is there a better solution?
thanks,
him
Hi there,
IF you want to put something inside off-canvas aside from the menu, you can use the off-canvas widget area instead of using the header widget area.
https://docs.generatepress.com/article/off-canvas-panel-overview/#off-canvas-panel-widget-area
Thanks Elvin, but that again will mean putting one of the widgets hidden on either the larger or smaller screens. For now, header widgets have done the job.
thanks and best,
him
Yeah it may need some custom CSS.
Glad you got it to work. No problem. :D