Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove the 'x' button in the header search box in bootstrap 4


Recommended Posts

Hi All,

In my osC CE BS4, the header search box will show an 'x' button for clearing the text:

1503171955_Image002.png.f57b833ff670c052a765479145dd8016.png

Is there a way to remove/disable that 'x' button?

I do not see the same thing in my BS3 site so I assume that's a BS4 thing.

Thanks in advance for your help.

Eddy

Link to comment
Share on other sites

19 minutes ago, burt said:

That's something added by browser - for the "search" input type.  It's a "good thing" for accessibility etc...

What would be a reason for not having it ?  Try:

https://blog.maximerouiller.com/post/remove-the-x-from-internet-explorer-and-chrome-input-type-search/

Thanks Gary for the info.  My main reason is for trouble-shooting.  I believe it screwed up something that I installed myself.  I was also thinking about styling it if I could figure out what that is.

Cheers, Eddy

Edit: The code shown in above website does the trick.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...