functions - How to add widget in main menu

admin2025-01-07  5

I want to display widgets in main menu. There are few plugins to do this and i already used in my previous projects. But now i want do without any plugin. I can create a custom sidebar and call this sidebar anywhere even in the header. But i want to display widgets in navigation container with menu flow ul > li.

I want to display widgets in main menu. There are few plugins to do this and i already used in my previous projects. But now i want do without any plugin. I can create a custom sidebar and call this sidebar anywhere even in the header. But i want to display widgets in navigation container with menu flow ul > li.

Share Improve this question asked Jun 4, 2017 at 0:59 Mohammad KashifMohammad Kashif 332 silver badges8 bronze badges 1
  • You'd probably need dynamic_sidebar() and what it called a custom walker to achieve that if you don't want to use any existing plugin. – JMau Commented Jul 27, 2021 at 15:47
Add a comment  | 

1 Answer 1

Reset to default 0

I haven't tried it but this seems to answer the your criteria https://www.quora.com/In-WordPress-how-do-I-add-a-widget-to-a-menu

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736263809a917.html

最新回复(0)