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 Marcinko
Ernest 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:

$this.n.text.css({
    width: $this.n.proinput.width() - 2 + $this.n.proloading.outerWidth(true),
    position: 'absolute',
    zIndex: 2
});

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:

$this.n.text.css({
    position: 'absolute',
    zIndex: 2
});

The inline width should not be there visible anymore.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)