[Resolved] Registing and add new widget area to main menu

Home Forums Support [Resolved] Registing and add new widget area to main menu

Home Forums Support Registing and add new widget area to main menu

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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 !

    #1038335
    Leo
    Staff
    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 πŸ™‚

    #1038345
    COINSI SAS

    I added the shortcode and It works ! Only for curiosity: There are a way without plugin?

    Thanks Leo

    #1038361
    Leo
    Staff
    Customer Support

    No there isn’t. The plugin should have minimal impact to your site though. It just turns existing widgets into shortcodes πŸ™‚

    #1038394
    COINSI SAS

    Thanks Leo for the information !

    #1038396
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

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