- This topic has 10 replies, 4 voices, and was last updated 3 years, 5 months ago by
Tom.
-
AuthorPosts
-
August 9, 2017 at 3:32 pm #362553
Günther
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?
August 9, 2017 at 4:57 pm #362597Leo
StaffCustomer SupportHi there,
Can you try
get_search_form()
?Let us know.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 9, 2017 at 5:41 pm #362628Günther
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.
August 9, 2017 at 5:58 pm #362633Günther
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 🙂
August 10, 2017 at 12:22 am #362807Tom
Lead DeveloperLead DeveloperThe 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?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 10, 2017 at 3:56 am #362937Günther
it worked, thanks :))
August 10, 2017 at 10:16 am #363235Tom
Lead DeveloperLead DeveloperYou’re welcome 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentNovember 14, 2017 at 10:17 pm #424630Robert
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
November 15, 2017 at 10:10 am #425177Tom
Lead DeveloperLead DeveloperThis should do it: https://generatepress.com/forums/topic/elementor-nav-widget/#post-401054
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentNovember 16, 2017 at 11:22 pm #426491Robert
Awesome!!! Thanks!! 🙂
November 17, 2017 at 9:16 am #426909Tom
Lead DeveloperLead DeveloperYou’re welcome 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.