Justified Image Grid: Change string #prettyPhoto[1]/0/ from URL?
  • When I click in a photo on my wp, it adds on the url something like this #prettyPhoto[1]/0/. How can I change to something more custom? example: #CustomString[1]/0/

    The code is this http://pastebin.com/PUW5JjSc
  • you need to edit the link rel under the lightboxes menu. you have to use brackets []. for example [purpleninja]
    or if you want to remove the customstring all together, edit deeplinking:true to false under prettyPhoto JS settings
  • You need to make changes on line 6598 in justified-image-grid.php of plugin file in root folder from
    switch($lightbox){ case 'prettyphoto':
    $shadow_rel = 'prettyPhoto[ngg-'.$album_content.']'; break;


    switch($lightbox){ case 'prettyphoto':
    $shadow_rel = 'Photo[ngg-'.$album_content.']';

    where photo is custom string.. break;

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter