Support » Plugin: Disable Search » Remove search bar in foodie pro theme

  • Resolved Gayatri

    (@the-muffin-top)



    The built-in search bar with my foodie pro website doesn’t show up on the mobile version. I’ve now added a second search bar using a widget, and want to remove the original one that comes with the theme. Haven’t found anything that’s worked so far, any ideas here?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    @the-muffin-top: Hi Gayatri,

    Since you sought to add a search bar in the first place, it seems that you aren’t using my Disable Search plugin (which, as the name indicates, seeks to disable search entirely).

    I’m not familiar with the Foodie Pro theme so I can’t advise too much on the specifics of how the search field is implemented. Have you tried asking for support from StudioPress?

    This might help:
    https://stackoverflow.com/questions/46363358/remove-search-form-from-menu-in-wordpress-genesis

    Or this looks to be an improvement of the menu bar search field:
    https://sridharkatakam.com/responsive-menu-with-inline-search-in-foodie-pro/

    Based on that last link, though info is hidden behind a paywall, it starts off with how to disable the search form in the menu.

    It says to change:

    $menu_search = sprintf( '%s</li>', __( genesis_search_form() ) );
    return $menu . $social . $menu_search;

    I imagine the hidden next step (which should be all you need to simply remove the menu bar search field) should be to replace that with:

    return $menu . $social;

    If you want to implement the responsive menu bar search form (as shown in that video) which will allow it to show up on the mobile version, you’ll have to sign up for that site to get the code.

    That’s about all I can do for you. No guarantees about any of the above. Hope that helps!

    Gayatri

    (@the-muffin-top)

    Thanks Scott! I did try your plugin, but it disabled both search bars, the original one and the one I added using a plugin for the mobile version. I’m looking to only disable the original. I’ve also looked at the other links and contacted Studio Press, hopefully I hear back soon. In the meantime I’m going to try the code that you’ve mentioned here, I wasn’t able to see it on that site without subscribing. Thanks for your help!

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