Site logo

[Resolved] Which hook to use for area by header logo (desktop)?

Home Forums Support [Resolved] Which hook to use for area by header logo (desktop)?

Home Forums Support Which hook to use for area by header logo (desktop)?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1806760
    Milo Lam

    Hi, I’m trying to achieve this on my header space. What hook/block Element would I use to create the items in the marked area?

    Thank you!

    #1806802
    Leo
    Staff
    Customer Support

    Hi there,

    Try the generate_inside_header first.

    Let me know 🙂

    #1806814
    Milo Lam

    Hi, is that some type of custom hook? I can’t see the option in Elements (both Block and Hook Elements). The only options are before, header, or after_header.

    #1806823
    Elvin
    Staff
    Customer Support

    Hi Milo.

    Try inside_navigation.

    Here’s where it is exactly within the code – https://github.com/tomusborne/generatepress/blob/b60b853630da6d9015722da903e53c8064148b0a/inc/structure/navigation.php#L37

    #1806834
    Milo Lam

    Hi Elvin,
    It appears that the hook would still be underneath the logo and above the primary navigation menu. I left my demo website credentials in the private area so you can take a look. I tried messing around with the main container width but the entire thing is still on a different row I believe.

    Thank you.

    #1806924
    Elvin
    Staff
    Customer Support

    You can try using generate_after_logo but the same thing will probably happen as things are set to wrap.

    We may have to write custom CSS to do the proper layout for it. Can you insert the hooked html and let us have a look?

    #1812984
    Milo Lam

    The after logo hook worked great! I got all the CSS figured out after.

    Thank you!

    #1814155
    Elvin
    Staff
    Customer Support

    Nice one. Glad you got it sorted. 🙂

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