Hey there,
quick question, when I set the css parameter in the snippet call like &css=`assets/modules/easy2/templates/styleMobile.css` it just appends this stylesheet below the standard, assets/modules/easy2/templates/style.css. Shouldn’t it actually replace it? below is whole snippet call:
[!easy2?gid=`[*galleryId*]` &css=`assets/modules/easy2/templates/styleMobile.css` &maxh=420&maxw=300&w=`55`&h=`55`&thq=`90`!]
this is the relevent part of page’s source code:
<style type="text/css">
div.e2g_wrapper {visibility:hidden}
</style>
<script type="text/javascript">
window.onload = function() {
var css = document.createElement('style');
css.type = 'text/css';
var styles = 'div.e2g_wrapper {visibility:visible}';
if (css.styleSheet) css.styleSheet.cssText = styles;
else css.appendChild(document.createTextNode(styles));
document.getElementsByTagName("head")[0].appendChild(css);
};
</script>
<link rel="stylesheet" type="text/css" href="/assets/modules/easy2/templates/style.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/assets/modules/easy2/templates/styleMobile.css" media="screen" />
Any Thoughts?
-Noah