Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #588

    Hi, I love AviaSlide and just purchased it on themeforest. I have it working and everything however I’d like to remove prettyPhoto all together. I saw in the documentation that you can disable it within custom.js on line 6 however it is still requiring the files to be present which means it is loading unnecessary files. I see in firebug that prettyPhoto is referenced again in custom.min.js however I can’t figure out how to remove it. Is there a way to do this so that it can be fully optimized?

    #32095

    Hey!

    I don’t currently have a copy of Avia Slider (as a standalone product), this is marked for Kriesi’s attention.

    Best regards,

    James

    #32096

    Any updates yet?

    #32097

    Hey,

    I’ve got a copy of the Avia Slider standalone now, there are a few changes to make to remove the Pretty Photo code.

    1.) In index.html remove this:

    <link rel="stylesheet" href="js/prettyPhoto/css/prettyPhoto.css" type="text/css" media="screen" />

    and this:

    <script src="js/prettyPhoto/js/jquery.prettyPhoto.js" type="text/javascript"></script>

    2.) The custom.js file has this code which needs removing:

    jQuery('a[href$=jpg], a[href$=png], a[href$=gif], a[href$=jpeg]').prettyPhoto({theme: "light_square"});

    You can’t directly edit custom.min.js (because the file is encrypted to stop people stealing the code) however you can re-compress the code by copying the code to here: http://dean.edwards.name/packer/ and saving the file as custom.min.js in the Avia Slider folder.

    3.) The Pretty Photo folder can be deleted without any problems now.

    If you get stuck or need clarification on anything, let me know :)

    Cheers,

    James

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘prettyPhoto in AviaSlide’ is closed to new replies.