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: (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', ( '' ), false, null, true );
 wp_enqueue_script( 'jquery' );
 wp_register_script( 'jqmigrate', ( '' ), false, null, true );
 wp_enqueue_script( 'jqmigrate' );
wp_register_script( 'rwdImageMaps', '');
wp_enqueue_script( 'rwdImageMaps' );
} }
add_action('init', 'add_my_scripts');

The HTML code for the img will look like this:

<img src="" alt="Weine online günstig kaufen" />&lt;map id="map1425294570307" name="map1425294570307"&gt;&lt;area shape="rect" coords="0,0,285,155" title="Rotweine online günstig kaufen" alt="Rotweine online günstig kaufen" href="" target="_self"&gt;&lt;area shape="rect" coords="0,165,284,319" title="Weingut Sandwiese Wein" alt="Weingut Sandwiese Wein" href="" target="_self"&gt;&lt;area shape="rect" coords="292,0,492,318" title="Marienhof Perlwein Perlenmarie Perlenkönig" alt="Marienhof Perlwein Perlenmarie Perlenkönig" href="" target="_self"&gt;&lt;area shape="rect" coords="496,0,764,319" title="Wein zu Ostern" alt="Wein zu Ostern" href="" target="_self"&gt;&lt;/map&gt;

or look at the html view of on line 2015

  • This reply was modified 6 years, 9 months ago by  Richi400.
  • This reply was modified 6 years, 9 months ago by  Richi400.