Reply To: Compact search box works in Firefox but not Chrome or Safari

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Compact search box works in Firefox but not Chrome or Safari Reply To: Compact search box works in Firefox but not Chrome or Safari

#5963

Ernest Marcinko
Keymaster

Hi!

I think I know why. The widget position where the search is placed is set to “relative” in the CSS. It means, that it traps the fixed positioned search inside of it. I can suggest two solutions to this:

1. Setting the footer to the default, static position, with this small custom CSS snippet:

#mk-footer {
    position: static !important;
}

You can add this snippet to the search instance options Theme Options -> Custom CSS panel. Or perhaps your theme also has an option somewhere to use custom CSS.

2. Moving the search shortcode directly to the theme footer file.
The theme footer file is usually named as footer.php in the theme directory. You can put the search PHP shortcode there, just before the closing body tag (usually just before the end of the file). So it's something like this:

       <?php echo do_shortcode('[wpdreams_ajaxsearchpro id=2]'); ?> 
	</body>
</html>

I would prefer the 2. solution, as it does not change any styling. But if that's not possible, the first suggestion should also work 🙂

Best,
Ernest Marcinko

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