Home › Forums › Support › Registing and add new widget area to main menu This topic has 5 replies, 2 voices, and was last updated 3 years, 3 months ago by Leo. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts October 18, 2019 at 9:59 am #1038334 COINSI SAS Hi guys, Im trying to create a new widget area to add content into main menu. Do you know which is the function I should add into the functions.php file? I want to add a product search widget. Thanks ! October 18, 2019 at 10:01 am #1038335 LeoStaff Customer Support Hi there, Should be easier to use the inside_navigation hook: https://docs.generatepress.com/article/hooks-element-overview/ With Widget Shortcode plugin: https://wordpress.org/plugins/widget-shortcode/ Let me know if this helps π Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ October 18, 2019 at 10:15 am #1038345 COINSI SAS I added the shortcode and It works ! Only for curiosity: There are a way without plugin? Thanks Leo October 18, 2019 at 10:41 am #1038361 LeoStaff Customer Support No there isn’t. The plugin should have minimal impact to your site though. It just turns existing widgets into shortcodes π Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ October 18, 2019 at 11:40 am #1038394 COINSI SAS Thanks Leo for the information ! October 18, 2019 at 11:42 am #1038396 LeoStaff Customer Support No problem π Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In