We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15976
    • 44 Posts
    Hi,

    How do I stop Maxigallery from automatically adding the following lines of code:

    <link rel="stylesheet" href="/assets/snippets/maxigallery/slimbox/css/slimbox.css" type="text/css" media="screen" />
    	<script type="text/javascript" src="/assets/snippets/maxigallery/slimbox/js/mootools.js"></script>
    	<script type="text/javascript" src="/assets/snippets/maxigallery/slimbox/js/slimbox_lang_en.js"></script>
    	<script type="text/javascript" src="/assets/snippets/maxigallery/slimbox/js/slimbox.js"></script>
    <link rel="stylesheet" href="/assets/snippets/maxigallery/css/default.css" type="text/css" media="screen" />


    The reason I’m to do this is that Maxigallery is causing an error in IE (Internet Explorer cannot open the internet site. Operation aborted). I know from previous that if I add these includes to the bottom of the code rather than the top the error goes away.

    Unless anyone has another solution?
      • 7923
      • 4,213 Posts
      If you update the slimbox script in MaxiGallery to the latest one, it might fix your problems.

      But if you want to get rid of those completely, do a custom galleryPictureTpl that renders the html like the slimbox wants (eg. copy the default template and remove everything but slimbox parts.. note: also remove the condition syntaxes). Then call maxigallery without display and embedtype parameters and use your custom galleryPictureTpl.

      This way maxigallery formats the html like slimbox wants, but does not add the slibox resource files on to the page automatically, so you need to add those manually.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 15976
        • 44 Posts
        I’ve updated the slimbox script and it now works perfectly, thank you smiley