Thanks a lot, i will try the code lines and post feedback.
For the second question about the thumbnais sizes I found myself the solution:
Open the image-sizes.php file of your theme (it should be in wp-contents/themes/your-theme/framework/config/)
Add the thumbnails sizes you need:
<?php defined( ‘ABSPATH’ ) OR die( ‘This script cannot be accessed directly.’ );
/**
* Theme’s thumbnails image sizes
*
* @filter us_config_image-sizes
*/
return array(
// 600×600 – gallery large, blog layouts
‘tnail-1×1’ => array(
‘width’ => 600,
‘height’ => 600,
‘crop’ => TRUE,
),
// 350×350 – small image blog layout, gallery medium, person
‘tnail-1×1-small’ => array(
‘width’ => 350,
‘height’ => 350,
‘crop’ => TRUE,
),
// 400×300 – small image landscape
‘tnail-4×3-small’ => array(
‘width’ => 400,
‘height’ => 300,
‘crop’ => TRUE,
),
);
Then install the plugin Regenerate Thumbnails, and regenerate your images thumbnails (you will find it in the tools menu).
Now in the gallery options you should find the new thumbnails sizes.