Skip Navigation

[Resolved] How to display WordPress Archive Search inside a toggle

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Waqar 1 year, 4 months ago.

Assisted by: Waqar.

Author
Posts
#2629567

Hi,
I would like to display the content of the WordPress Archive Search inside a toggle in a custom post type Archive page. This one: hidden link

I have found this plugin (https://wordpress.org/plugins/offcanvas-block/) that does pretty much what I need, but if I add the Archive Search inside the block, it does not show up.

This is what I am trying to achieve: hidden link

If there is any other way to do it, I am all ears..!

#2629857

Hi,

Thank you for contacting us and I'd be happy to assist.

I've performed some tests with the plugin you referenced and couldn't make it work with the archive's search form.

The only workaround, I can think of, is to load an empty 'Container' block in the 'OffCanvas' block and then use some custom jQuery script, to copy the search form HTML inside that empty container.

For more personalized assistance around custom code, you can also consider hiring a professional from our list of recommended contractors:
https://toolset.com/contractors/

regards,
Waqar

#2631255
Screenshot 2023-08-07 at 09.21.36.png

Hi Waqar, thank you for your feedback.

I managed to add the WordPress Archive Search block inside an off canvas using a different plugin.

I still wonder if it's possible to put each set of checkboxes inside a toggle, like in the attached image...

#2631645

Thanks for writing back.

I've checked the archive page and looks like you've managed to make the toggles work, through a third-party accordion block.
( screenshot: hidden link )

You're welcome to mark this ticket as resolved and start a new one for each new question or concern.