[Resolved] Add custom elements / customize Off-Canvas-Panel

Home Forums Support [Resolved] Add custom elements / customize Off-Canvas-Panel

Home Forums Support Add custom elements / customize Off-Canvas-Panel

  • This topic has 5 replies, 3 voices, and was last updated 1 year ago by Ying.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2585611
    Ben

    Hi,

    I’d like to further customize my Off-Canvas-Panel.

    I’m showing different menu items there, I can use another menu, all good.
    But I’d also like to
    a) futher customize the looks of the menu items
    b) insert a small info block with several HTML elements (picture, headline, text, …)

    How is that possible?

    Thank you,
    Ben

    #2585782
    David
    Staff
    Customer Support

    Hi there,

    in Appearance > Elements add a new Block Element.

    https://docs.generatepress.com/article/block-element-hook/

    Set the Hook to either: after_slideout_navigation for the content to appear at the bottom. or inside_slideout_navigation for it to appear above.

    Set the Display Rules where you want it.

    And then build whatever you want to display in the block editor.

    Publish it once you are finished.

    #2586199
    Ben

    That’s great! Thanks for the quick answer.

    Could I also (re)build the whole off-canvas-area as a block element? Then I’d have complete control over the layout.
    Maybe insert an empty menu or so, so I can use the hooks?

    #2586281
    Ying
    Staff
    Customer Support

    Hi Ben,

    In that case, you don’t have to assign any menu to the off canvas panel, as long as the off canvas panel is on, the hook is available to use.

    #2586567
    Ben

    Awesome, thanks!

    #2587519
    Ying
    Staff
    Customer Support

    No Problem 🙂

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