- This topic has 14 replies, 4 voices, and was last updated 5 months, 1 week ago by
David.
-
AuthorPosts
-
October 13, 2022 at 10:19 am #2372616
Elvis
Hello,
I have tried searching the forum, but couldnt find what I need.
Inside the mobile menu panel, at the end I would like to have search and social icons. Like this:
And I am trying to do that using this
But nothing happens.
If I choose any other mobile menu related hook, it appears, only these are not where I want it. Only not in place I want. π
Please help.
To understand recursion, you first have to understand recursion.
October 13, 2022 at 11:24 am #2372677Ying
StaffCustomer SupportHi there,
Are you using the off-canvas menu for the mobile?
If so, try using the
inside_slideout_navigation
hook.October 13, 2022 at 1:01 pm #2372732Elvis
Hi Ying,
no, not the slideout version.thanks.
To understand recursion, you first have to understand recursion.
October 13, 2022 at 6:22 pm #2372875Fernando Customer Support
Hi Elvis,
For reference, can you share the link to the site in question?
You may use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
October 14, 2022 at 5:12 am #2373296Elvis
Hi @Fernando,
check out the site linked in the private box.
ThanksTo understand recursion, you first have to understand recursion.
October 14, 2022 at 7:11 am #2373410David
StaffCustomer SupportHi there,
if you use the Hook:
after_primary_menu
it will output the HTML here:you will need to use some CSS to ensure its
display: block
on mobile anddisplay: none
for desktop and its flexorder
is high enough to move it down to its logical position.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 14, 2022 at 8:37 am #2373662Elvis
Thanks @David,
that kinda works. Any Ideas why inside_mobile_menu does not work? The issue is, accessibility wise, this kind of layout that does not reflect the actual structure of the HTML document tends to produce problems when it comes to screen readers and keyboard navigation in my experience.
What I am trying to say I would like to have the buttons in the proper place, just after the mobile menu UL. Its more elegant CSS wise, html wise.
Thanks,
ElvisTo understand recursion, you first have to understand recursion.
October 14, 2022 at 8:40 am #2373669David
StaffCustomer SupportThe
inside_mobile_menu
hook is really badly named, as its position is actually inside the navigation element.There is no Hook inside the
UL
element – is that where you are wanting to add it ?Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 14, 2022 at 8:42 am #2373672Elvis
Hi @David,
inside #mobile-menu element, right after the UL element.When I place it there in my dev tools, everything is dandy. π
To understand recursion, you first have to understand recursion.
October 14, 2022 at 8:47 am #2373686Elvis
Also, It would be ok If it was placed in
<nav>
element, but its not there?!To understand recursion, you first have to understand recursion.
October 14, 2022 at 8:56 am #2373698David
StaffCustomer SupportUnfortunately we can’t hook inside the
#mobile-menu
as thats the menu wrapper.
The method i proposed here does place it in thenav > inside-navigation
element though ….Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 14, 2022 at 8:59 am #2373703Elvis
True. inside_mobile_header seems to do that too. π
Pitty it cannot be in #mobile-menu. Will work withint the inside-navigation though.
I just have trouble sticking it to the bottom, without position.
Thanks, I’ll figure it out from here.
Best,
ETo understand recursion, you first have to understand recursion.
October 14, 2022 at 9:01 am #2373706David
StaffCustomer SupportIf you can hook it in there, and i can see it, i can take a look at fixing it below the UL. Let me know
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 14, 2022 at 9:06 am #2373714Elvis
Thanks, its done.
Will push to staging later..social-icons { order: 5; min-height: calc(100vh -90px); } .inside-navigation { align-content: flex-start;}
Done,
Thanks a lotTo understand recursion, you first have to understand recursion.
October 14, 2022 at 9:28 am #2373740David
StaffCustomer SupportGlad to hear that!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.