Site logo

[Support request] Custom Hook inside and at the end of #mobile-header

Home Forums Support [Support request] Custom Hook inside and at the end of #mobile-header

Home Forums Support Custom Hook inside and at the end of #mobile-header

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #2429654
    René

    Hello, I need a custom Hook at the end of “#mobile-header and after “.inside-navigation” (see screenshot).
    Screenshot Code
    I found the following forum topic: https://generatepress.com/forums/topic/hook-inside-idmobile-menu/
    You just have to adapt this code, but I don’t know how.
    I would be grateful for help.

    #2429884
    Ying
    Staff
    Customer Support

    Hi Rene,

    Does after_header work for you?

    It’s the same that we will need to use CSS to hide it on the desktop.

    Let me know!

    #2432889
    René

    Thanks for the fast reply. But no, it has to be within the menu.

    #2433052
    David
    Staff
    Customer Support

    Hi there,

    there isn’t a hook there.
    The closes hook comes BEFORE the closing </div><!-- .inside-navigation --> and that is generate_after_primary_menu

    Why does it need to be after the closing div ?

    #2433087
    René

    The Menu have to look like this. It should also have on mobile 100vh (with the button in the menu).

    Preview

    #2433101
    David
    Staff
    Customer Support

    You should be able to use generate_after_primary_menu hook. As that appears immedieately after the menu. It may require a little CSS break out the containment, but i can help with that if you require.

    #2433328
    René

    The button has to be within the menu. Just thought about creating another menu item and styling the CSS. However, it is difficult for me to get the 100vw width of the background then.

    #2433388
    David
    Staff
    Customer Support

    The button has to be within the menu.

    So do you want it in the Menu now ?

    If you add it to the menu, and let me see it, i can provide some CSS to make it look like the above

    #2438427
    René

    Unfortunately, I’m not allowed to do that :/ Maybe my colleague can do it. Thank you anyway.

    #2438732
    David
    Staff
    Customer Support

    OK, let us know if you need any assistance with that.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.