confirmed. problem is the HTML going in is … ugly, throwing off the (probably somewhat naive) HTML optimizer;
<a
data-fresco-group="product-gallery"
data-fresco-options="ui: 'outside', thumbnail: 'https://pckasseintegration.inbusinessclients.no/wp-content/uploads/pckasse_upload/Chenille_1503749725-570x466.png'"
data-fresco-group-options="overflow: true, thumbnails: 'vertical', onClick: 'close'"
data-fresco-caption=""
class="fresco zoom"
href="https://pckasseintegration.inbusinessclients.no/wp-content/uploads/pckasse_upload/Chenille_1503749725.png"
>
which after HTML optimization becomes:
<adata-fresco-group="product-gallery"
data-fresco-options="ui: 'outside', thumbnail: 'https://pckasseintegration.inbusinessclients.no/wp-content/uploads/pckasse_upload/Chenille_1503749725-570x466.png'"
data-fresco-group-options="overflow: true, thumbnails: 'vertical', onClick: 'close'"
data-fresco-caption=""class="fresco zoom"href="https://pckasseintegration.inbusinessclients.no/wp-content/uploads/pckasse_upload/Chenille_1503749725.png">
So that’s not good. You could either disable HTML optimization (it’s the least important one anyhow) or you could use this code-snippet that seems to fix things for me;
add_filter('autoptimize_html_after_minify','fresco_zoom_fixer');
function fresco_zoom_fixer($in) {
return preg_replace_callback(
'/<a(data[^>]*)>/',
create_function(
'$matches',
'
$_tmp="<a $matches[1]>";
$_tmp=str_replace("\n"," ",$_tmp);
$_tmp=str_replace("\"class","\" class",$_tmp);
$_tmp=str_replace("\"href","\" href",$_tmp);
return $_tmp;
'
),
$in
);
}
hope this helps,
frank