[Support request] Search bar and page customization

Home Forums Support [Support request] Search bar and page customization

Home Forums Support Search bar and page customization

Viewing 8 posts - 16 through 23 (of 23 total)
  • Author
    Posts
  • #1630584
    Dev

    Hello,

    Okay, then is it possible to replace the theme search with that search plugin.

    I mean in the secondary menu when we click the theme default search gets open.

    So, can we replace that with the plugin I’m using?

    Please let me know.

    #1630595
    David
    Staff
    Customer Support

    You can replace the default search form with a shortcode from the search plugin – Tom explains here:

    https://generatepress.com/forums/topic/replace-gp-search/#post-1272331

    We can’t say whether that plugin will work correctly using this method.

    #1634125
    Dev

    Hello,

    I talked with the Plugin developer, and he says me

    If it is not replaced automatically, then the theme has the search bar hard-coded and not using the get_search_form hook – in that case the opposite is true, they should be the ones knowing in which file is the header search bar is integrated. Please let me know if they sent you any details or instructions about that.
    I am more than happy to help you with that, but I need to know which file has the header search hard-coded, so it can be replaced manually. I strognly recommed creating a child theme for that as well, so theme updates does not override any changes made to the theme files.

    I think there are some other issues as well, as I tried to open the header search, but nothing is shown when I’m clicking it: https://www.youtube.com/watch?v=nPIOODxyv_w&ab_channel=ErnestMarcinko

    Can you please tell me what detail he wants from you(the theme developer)?

    Please let me know

    #1634399
    David
    Staff
    Customer Support

    Thats correct the GP Navigation Search is adding a hardcoded form.
    The link i added above: https://generatepress.com/forums/topic/replace-gp-search/#post-1272331
    Provides the PHP Snippet you will use to replace the hard coded form with that plugins shortcode.

    #1634418
    Dev

    Hello,

    I’ve to tell him where is the file has the header search hard-coded?

    What shall I tell him about that?

    #1634572
    David
    Staff
    Customer Support
    #1637106
    Dev

    Hello,

    The plugin developer provides me the below PHP function, and after that, it’s working.

    add_filter( ‘generate_navigation_search_output’, function() {
    return sprintf(

    ‘,
    do_shortcode( ‘[wpdreams_ajaxsearchpro id=2]’ )
    );
    } )

    But there is an issue with mobile view. Please see the below video.

    https://share.getcloudapp.com/Z4u6vjE6

    After clicking the search icon, two boxes are getting open. How can we remove one?

    #1637160
    David
    Staff
    Customer Support

    You will need to ask the Plugin developer – it looks the plugin is hooking itself inside itself…

Viewing 8 posts - 16 through 23 (of 23 total)
  • You must be logged in to reply to this topic.