[Resolved] Generatepress Navigation Search with Beaver Themer

Home Forums Support [Resolved] Generatepress Navigation Search with Beaver Themer

Home Forums Support Generatepress Navigation Search with Beaver Themer

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #362553
    trial

    Hello,

    I am using Generatepress with Beaver Themer, and the latter “overwrites” primary navigation settings done via theme customization.

    I would like to include GeneratPress’s navigation search in the primary menu.

    On the Beaver site they suggest the following for pulling in the search with Beaver Theme:

    Add this to functions.php:

    function bb_search_shortcode() {
      ob_start();
      FLTheme::nav_search();
      return ob_get_clean();
    }
    add_shortcode( 'bb_search','bb_search_shortcode' );

    Then add an HTML element and put in shortcode next to the primary menu.

    Would this work with GeneratePress too?

    I guess FLTheme::nav_search(); is the Beaver Theme function, what function do I have to call with GeneratePress?

    #362597
    Leo
    Staff
    Customer Support

    Hi there,

    Can you try get_search_form()?

    Let us know.

    #362628
    trial

    I tried it out, the server then returns an internal error 500.

    Strangely, nothing is logged to the error logfile, even though I have
    define(‘WP_DEBUG’, true);

    in wp_config.php.

    #362633
    trial

    I managed to turn on error logging and just had a syntax error ;))

    I have a search bar now (a form input box with “search” written inside) – how can I style it like in Generatepress Theme – with the icon and the dropdown?)

    Thanks πŸ™‚

    #362807
    Tom
    Lead Developer
    Lead Developer

    The actual GP navigation search can’t be duplicated outside of the GP nav without some considerable custom programming.

    Why not just use the GP navigation? You could turn it into a shortcode so it can be placed anywhere?

    #362937
    trial

    it worked, thanks :))

    #363235
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

    #424630
    Robert

    Hi Tom,

    I have the same problem. I’m using Beaver Themer to replace the header and footer of a site, but the Beaver Builder / Beaver Themer menu widget doesn’t have a search feature.

    Why not just use the GP navigation? You could turn it into a shortcode so it can be placed anywhere?

    I didn’t know this was possible. Is there an existing shortcode I can use, or do I have to code one into my functions.php?

    Thanks

    #425177
    Tom
    Lead Developer
    Lead Developer
    #426491
    Robert

    Awesome!!! Thanks!! πŸ™‚

    #426909
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

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