Reply To: Search is very slow

#4106

Richi400
Participant

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:

&lt;img src=&quot;<a href="http://www.youwineworld.com/wp-content/uploads/2015/03/Shop-Banner-Alle-Weine.jpg&#038;quot" rel="nofollow">http://www.youwineworld.com/wp-content/uploads/2015/03/Shop-Banner-Alle-Weine.jpg&#038;quot</a>; alt=&quot;Weine online günstig kaufen&quot; /&gt;&amp;lt;map id=&quot;map1425294570307&quot; name=&quot;map1425294570307&quot;&amp;gt;&amp;lt;area shape=&quot;rect&quot; coords=&quot;0,0,285,155&quot; title=&quot;Rotweine online günstig kaufen&quot; alt=&quot;Rotweine online günstig kaufen&quot; href=&quot;<a href="http://www.youwineworld.com/produktkategorie/rotwein/&#038;quot" rel="nofollow">http://www.youwineworld.com/produktkategorie/rotwein/&#038;quot</a>; target=&quot;_self&quot;&amp;gt;&amp;lt;area shape=&quot;rect&quot; coords=&quot;0,165,284,319&quot; title=&quot;Weingut Sandwiese Wein&quot; alt=&quot;Weingut Sandwiese Wein&quot; href=&quot;<a href="http://www.youwineworld.com/produktkategorie/weingut-sandwiese/&#038;quot" rel="nofollow">http://www.youwineworld.com/produktkategorie/weingut-sandwiese/&#038;quot</a>; target=&quot;_self&quot;&amp;gt;&amp;lt;area shape=&quot;rect&quot; coords=&quot;292,0,492,318&quot; title=&quot;Marienhof Perlwein Perlenmarie Perlenkönig&quot; alt=&quot;Marienhof Perlwein Perlenmarie Perlenkönig&quot; href=&quot;<a href="http://www.youwineworld.com/produktkategorie/weingut-marienhof/&#038;quot" rel="nofollow">http://www.youwineworld.com/produktkategorie/weingut-marienhof/&#038;quot</a>; target=&quot;_self&quot;&amp;gt;&amp;lt;area shape=&quot;rect&quot; coords=&quot;496,0,764,319&quot; title=&quot;Wein zu Ostern&quot; alt=&quot;Wein zu Ostern&quot; href=&quot;<a href="http://www.youwineworld.com/shop/&#038;quot" rel="nofollow">http://www.youwineworld.com/shop/&#038;quot</a>; target=&quot;_self&quot;&amp;gt;&amp;lt;/map&amp;gt;

or look at the html view of http://www.youwineworld.com/shop on line 2015

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