Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Search is very slow › Reply To: Search is very slow
GREAT! It solved the problem :-))
Oh no I don’t want use such big images. It was just a try, if a 300KB JPG looks worse than a 2.2MB PNG. But theres no difference in the shop-view. So I replaced the PNG with the JPG and the search works now and is fast enough! Thanks! great!
-
Map issue
HTML image maps are one of the best ways to add multiple links to a single image. look here: http://www.youwineworld.com/shop/ (the banner above the “Shop”-Title has 4 different links) but it’s one image.
It works, but for example if you reduce the size of your browser-window to see how it would work e.g. on tablets you see that the link-map is not calculated to fit the new resolution. To keep the link-map fit to every resolution I’ve built in the jQuery-rwdImageMaps.
In my functions.php I used this code:
add_action( 'wp_print_scripts', 'add_my_scripts', 100 );
function add_my_scripts() {
if ( !is_admin() ) {
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', ( 'http://www.youwineworld.com/wp-includes/js/jquery/jquery-1.11.2.min.js' ), false, null, true );
wp_enqueue_script( 'jquery' );
wp_register_script( 'jqmigrate', ( 'https://code.jquery.com/jquery-migrate-1.1.0.min.js' ), false, null, true );
wp_enqueue_script( 'jqmigrate' );
wp_register_script( 'rwdImageMaps', 'http://www.youwineworld.com/wp-content/themes/labomba/includes/js/jquery.rwdImageMaps.js');
wp_enqueue_script( 'rwdImageMaps' );
} }
add_action('init', 'add_my_scripts');
The HTML code for the img will look like this:
<img src="http://www.youwineworld.com/wp-content/uploads/2015/03/Shop-Banner-Alle-Weine.jpg" alt="Weine online günstig kaufen" /><map id="map1425294570307" name="map1425294570307"><area shape="rect" coords="0,0,285,155" title="Rotweine online günstig kaufen" alt="Rotweine online günstig kaufen" href="http://www.youwineworld.com/produktkategorie/rotwein/" target="_self"><area shape="rect" coords="0,165,284,319" title="Weingut Sandwiese Wein" alt="Weingut Sandwiese Wein" href="http://www.youwineworld.com/produktkategorie/weingut-sandwiese/" target="_self"><area shape="rect" coords="292,0,492,318" title="Marienhof Perlwein Perlenmarie Perlenkönig" alt="Marienhof Perlwein Perlenmarie Perlenkönig" href="http://www.youwineworld.com/produktkategorie/weingut-marienhof/" target="_self"><area shape="rect" coords="496,0,764,319" title="Wein zu Ostern" alt="Wein zu Ostern" href="http://www.youwineworld.com/shop/" target="_self"></map>
or look at the html view of http://www.youwineworld.com/shop on line 2015