Site logo

Archived topic

Insert search form *above* inside the off canvas menu

3 replies · Started by Fábio Rodrigo on November 9, 2020

Viewing posts 1–4 of 4

Hello, there. I'm trying to replicate this design: https://i.imgur.com/Wq5YAz4.jpg

The widget area of Generatepress is below inside the off canvas menu, so inserting a widget wont help.

By the way, the default search widget from WP is VERY ugly and a lot different from the overall design of the theme.

How can I have more control over the off canvas menu? Is there a file where can I "hard edit" to experiment in a test environment?

If I could put the widget area on top of the menu, for example, or use the code I want there, this would give me a lot of options (not only for the search form).

I'm finding very difficult to customize this area using only css.

Thank you for your time.

Hi there,

the Off Canvas Panel has 2 x Hooks that you can use.

Before Nav: generate_inside_slideout_navigation
After Nav: generate_after_slideout_navigation

You can use a Hook Element ( or custom function ) or the Block Element to add anything you require.

Thank you! Never crossed my mind using the elements. Generatepress is the best!

Glad to be of help

This archived topic is closed to new replies.