• Resolved dragonart

    (@dragonart)


    Hi, I cannot for the life of me figure out why the search feature is not working. My client emails me a CSV file to import, I import it, and it loads fine but the search feature is not showing. I’m doing all of this from a Mac. Can you get back to me?

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

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The cause for this is a JavaScript error that is thrown by some outdated code. This code seems to be part of your theme, and it’s loaded on every page.
    It looks like this:

    	/* For IE6 */
    	if (jQuery.browser.msie && /MSIE 6\.0/i.test(window.navigator.userAgent) && !/MSIE 7\.0/i.test(window.navigator.userAgent) && !/MSIE 8\.0/i.test(window.navigator.userAgent)) {
    
    		/* Max-width for images in IE6 */		
    		var centerwidth = jQuery("td#middle").width(); 
    		
    		/* Images without caption */
    		jQuery(".post img").each(function() { 
    			var maxwidth = centerwidth - 10 + 'px';
    			var imgwidth = jQuery(this).width(); 
    			var imgheight = jQuery(this).height(); 
    			var newimgheight = (centerwidth / imgwidth * imgheight) + 'px';	
    			if (imgwidth > centerwidth) { 
    				jQuery(this).css({width: maxwidth}); 
    				jQuery(this).css({height: newimgheight}); 
    			}
    		});
    		
    		/* Images with caption */
    		jQuery("div.wp-caption").each(function() { 
    			var captionwidth = jQuery(this).width(); 
    			var maxcaptionwidth = centerwidth + 'px';
    			var captionheight = jQuery(this).height();
    			var captionimgwidth =  jQuery("div.wp-caption img").width();
    			var captionimgheight =  jQuery("div.wp-caption img").height();
    			if (captionwidth > centerwidth) { 
    				jQuery(this).css({width: maxcaptionwidth}); 
    				var newcaptionheight = (centerwidth / captionwidth * captionheight) + 'px';
    				var newcaptionimgheight = (centerwidth / captionimgwidth * captionimgheight) + 'px';
    				jQuery(this).css({height: newcaptionheight}); 
    				jQuery("div.wp-caption img").css({height: newcaptionimgheight}); 
    				}
    		});
    		
    		/* sfhover for LI:HOVER support in IE6: */
    		jQuery("ul li").
    			hover( function() {
    					jQuery(this).addClass("sfhover")
    				}, 
    				function() {
    					jQuery(this).removeClass("sfhover")
    				} 
    			); 
    
    	/* End IE6 */
    	}

    I suggest to remove this JS code.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘Search feature not working’ is closed to new replies.