This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Trying to stop JS to add in-line CSS for the .orig class

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Trying to stop JS to add in-line CSS for the .orig class Reply To: Trying to stop JS to add in-line CSS for the .orig class

#4486
Ernest MarcinkoErnest Marcinko
Keymaster

Hi!

Sure. I suggest you first switch from the minified javascript source to the non-minified. It’s much easier to make modifications to. You can do that on the compatibility settings submenu.

Then, the file you are looking for is the ajax-search-pro/js/nomin/jquery.ajaxsearchpro.js possibly lines 1477-1481:

[code]$this.n.text.css({
width: $this.n.proinput.width() – 2 + $this.n.proloading.outerWidth(true),
position: ‘absolute’,
zIndex: 2
});[/code]

So basically, this is executed on specific window resize events. If you remove the entire code, or maybe just the width part, it might solve the problem:

[code]$this.n.text.css({
position: ‘absolute’,
zIndex: 2
});[/code]

The inline width should not be there visible anymore.