Best way to disable search preview?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • heatherwebdev
    Mivite

    • May 2017
    • 157

    #1

    Best way to disable search preview?

    We don't want to use the search preview and I'm wondering what the best way to disable it is. I've removed the javascript for it, but now I get a bunch of javascript errors in my console.
  • RTHOMASDESIGN
    Mivite








    • Jun 2015
    • 296

    #2
    I don't know what Readytheme you're using, but you should just be able to remove/comment out the container. I'd revert your javascript.

    Look for the tag with the following attributes: data-mm_searchfield_menu="Yes" data-mm_searchfield_id="x-search-preview-light-box"

    Just tested this out and didn't receive any errors on my end. Hope this helps!
    -Ryan
    Last edited by RTHOMASDESIGN; 08-08-20, 12:05 PM.

    Comment

    • heatherwebdev
      Mivite

      • May 2017
      • 157

      #3
      I'm not using a Readytheme, and when I run a Template search for any part of that tag, it returns no results.

      Comment

      • RTHOMASDESIGN
        Mivite








        • Jun 2015
        • 296

        #4
        Yes, if you PM me a link I could tell you what to comment out/remove. Alternatively, you could also simply inspect the element in dev tools.

        Comment

        • heatherwebdev
          Mivite

          • May 2017
          • 157

          #5
          Its on a development account only right now.

          I was able to get it. I tried changing the class mm_searchfield_menu in search settings to something else, but that didnt do it. So I added css for

          .mm_searchfield_menu {
          display:none!important;
          }

          and that did it.

          Thanks

          Comment

          Working...
          X