175 comments found.
How to make, when we click to an image then open a new tab to a new URL. Thanks
open the gridGallery.js file and find this:
location.href=url;then replace it for this:
window.open(url , '_blank');and then use the gridGallery.js file in your HTML page instead of the minified version
Hi there, I´m willing to buy this great gallery, but I noticed caption is hidden when visualizing it on smartphones. Is there a way to show captions on smaller divices too?
Hello,
do you mean the text on the lightbox? or which caption?
Best, David
Hi David, I meant the text on the lightbox, sorry.
Hello,
ohh yes indeed, the text is hidden since there wasn’t no much room for the text, but I can recommend you this plugin: http://www.davidbo.dreamhosters.com/plugins/mediaBoxes/example/gallery.html which is the advanced version 
Thanks a lot! Looks beautifull and supports html and ajax in the pop up! Great!
The only think I noticed is that the pictures load a little bit slower then in the Ultimate Grid Responsive Gallery. I also miss the transitions between the pictures when I am in lightbox view. Is it configurable?
Hello,
actually the Media Boxes is faster, but you see it a little bit slower because of the following things:
1) The Media Boxes demo page is loading way more content than the Ultimate Grid page, I mean custom css/js, bootstrap css/js, the menu, font-awesome, the content, google fonts, etc. the Ultimate Grid is just loading the grid and bootstrap css
2) The Media Boxes demo page is loading 2 grids instead of just 1
3) The Media Boxes thumbnails are around 25-30kb and the thumbnails on the Ultimate Grid are around 10-15kb, in other words the images on the Media Boxes are heavier (since they have better quality)
The lightbox is called Magnific Popup, you can read more about it here: http://dimsemenov.com/plugins/magnific-popup/
I hope this makes sense 
Thanks a lot!
Hello,
first of all, congratulations for this awesome gallery!
I need to call the function that recalculate the size of the gallery from a open modal callback. Is that posible?
Thank you in advance!
I’m not sure what you mean with recalculate the size of the gallery. By default the lightbox doesn’t have any callbacks, but you can add one in JS by using this peace of code:
$('body').on('click', 'div.box', function(){
alert('opening lightbox');
});
I hope this makes sense
Hello, I haven’t explained well…
I have a gallery into a Bootstrap Modal. My problem is that when I open the modal, the gallery is not showing, but, if I resize the browser window, the gallery appears.
I think that this happens because a function recalculates the size of the gallery in accordance with the browser size. I want to call that function when the bootstrap modal callback is fired.
Thank you!
Hello,
ohh alright, yes indeed! when the page loads the gallery can’t know the dimensions of the browser since it doesn’t know where is going to be and it is hidden!
alright so as you said you need a callback for the bootstrap modal, I guess you can find it in the docs of Bootstrap (I haven’t use it before)
once you have the callback try adding this peace of JS inside to refresh the gallery:
setTimeout(function(){
$(window).trigger('resize');
}, 500);
Best, David
Thats just what I wanted!! Now it works very well!
Thank you very much!
Hi 
Firstly, thanks for the great work on the gallery, beautifully done!
A couple of questions:
1. I’m trying to implement it on a site with a slider (http://kmmedia.com.au/~~gallery-test/) The idea being that only a certain amount of images would be on each slide. I’m having a little trouble getting the second slide working. I’m guessing it’s because of the #grid. How would I add say #grid2 and trigger it in the javascript?
2. I want the parent container of the grid (in this case the slide) to be a certain height, and contain the images within that container without being cut off. Is there a way to do this so that all the landscape/portrait images fill the container completely? Is there an option in the javascript to make the thumbnails scale up to fill gaps? I hope this makes sense!
Thank you in advance
1) you can change the id for the second gallery like this:
<div id="grid2">and then in JS add a second initialization like this:
$('#grid2').grid();
2) I guess you can set all your images to be the same height like this with CSS:
.grid-brick{
height: 150px;
}
but controlling the total height of the grid is not possible, as it depends on how many rows are and the height they gotI hope this makes sense,
Best, David
I have a problem the double lightbox, that i can’t solve. I tried all the suggestions but they don’t work for me.
http://www.blusbus.nl/nieuwedeur/deurbeslag/I hope you can help
Frits
Hello,
any chance is a different plugin from another author?
since the grid and the lightboxes are not from this plugin (ultimate grid) I even checked the source code and I don’t see the files of this plugin.
Let me know 
Best, David
This is my website http://caya3.hansolution.com/board/view.do?iboardgroupseq=2&iboardmanagerseq=9 This page has that some images are invisible
Hello,
can you specify which images are the ones that are not visible? I see that the grid is being loaded, but not sure where are supposed to be the hidden images.
Best, David
If I put it in a div tag, will I be able to limit the height?
Hello,
ohh yes I guess that can be done 
I have two questions about this plugin.
1. Can I insert the gallery into a section and limit its height like this site: http://www.americasfarmers.com
2. Can I link the images to a different page instead of a lightbox?
Thanks.
Hello,
1. you can insert this plugin in that page, but there’s no option to limit the height
2. yes you can link to a page 
Hello, thanks for the great plugin. I have a question for the animation of loading new images. If i click the button “load more images..” the new images are flying from the upper left corner of the document (not the viewport). If i have a long list of images, this animation looks like just “flashing”. Is there a way to implement kind of “real lazyload”-animation, just like a fade-in transition.
Thanks in advance!
you can turn off the animation, open the gridGallery.min.js file and find this:
duration:500then replace it for this:
duration:0
also this plugin is not very advanced, if you really need this I would strongly recommend you to use this one: http://codecanyon.net/item/media-boxes-portfolio-responsive-grid/5683020
it is the advanced version of this plugin, you can do much more things and have a more powerful/faster grid
Best, David
Great Code! Love it, works perfectly. Though I am having an issue getting the grid to be centered rather than full width. I enabled the “isFitWidth: true,” but didnt change anything. Still full width. Any ideas?
Hello,
I don’t quite understand, what do you mean with centered instead of full width, any chance you could show me a living example online so I can take a look and see what’s going on?
Best, David
Absolutely can. Here you go. http://oi57.tinypic.com/2d7zjpw.jpg
Nevermind, it works perfectly. For those of you that may be running into this issue with BS3+; simply wrap the code in a container class div. All set. Great product. Thank you!
awesome 
Hi, thanks for this plugin. I implemented it on a custom html module in joomla. It works great. I just don’t understand why in your live preview the ‘load more’ button disappears when the pictures are all loaded, while on my site it doesn’t, and it remains there. http://www.dabesh.com/tatterton/servizi.html
It happens only in the ‘all’ category.. many thanks for any suggestion
this is strange, after all the images are loaded each time I hit the “load more” button I get the following error in the console:
GET http://www.dabesh.com/tatterton/undefined 404 (Articolo non trovato)it sounds like there’s some HTML markup issue (just a guess) can you try setting it to load only 1 box? (only leave the HTML for 1 image/box) so we can test with a single image!
let me know
I tried erasing the 2 mootools files from your page:
-mootools-core.js -mootools-more.jsand I commented this line:
var JTooltips = new Tips($('.hasTip').get(), {"maxTitleChars": 50,"fixed": false});
and it works! any chance you know if those lines affect somehow the normal behavior of your page?Best, David
hello, I ‘ve tried your solution installing a mootools enable/disable plugin. When I disable mootools on that page the gallery doesn’t even initialize..Now if you check the source on servizi.html there isn’t any mootools call, but the gallery disappears. Any futher help would be really appreciate. Thank
Hi,
alright I found that mootools is adding extra JS methods to all JS arrays, which is affecting all JS code (including plugins) I found a work around so it doesn’t affect this plugin, can you contact me via email so I can send you the JS file with the new modifications (through my profile at the bottom there’s a contact form)
Best, David
Thank you very much I will send you an email from the form of the author page (castlecode). I really appreciate
just sent you the new file 
Hi, very cool gallery Can i control the width of a singel photo in the grid?
Hello,
what do you mean with control the width? do you mean expand it into 2 columns?
yes, lets say one row will have 3 columns and the next row 4
Ohh now I understand what you mean, the thing here is that there are not rows, since the plugin works on a masonry layout (they are stacked from top to bottom and the images can have variable width). so it wouldn’t be possible with the plugin as it is
Best, David
OK, Thanks
Hello, I wonder if i can disable/hide “Load More” button when there is no other images to load?
Hello,
when there’s no more images to load the “Load More” button should be hidden automatically, (like in the live preview) if this isn’t working on your side and in the live preview is, can you show me a living example online so I can take a look?
Best, David
Hi, is it possible to have a border for every image without affecting overall grid? e.g i want to have a style like this in every box: border: 7px solid #fff; box-shadow: 1px 1px 2px #e6e6e6;
try the following:
.box{
box-shadow: 1px 1px 2px #e6e6e6;
}
.box img{
border: 7px solid red;
box-sizing: border-box;
}
Best, David
Hi, thanks for the great gallery!
On small mobile devices I have only one column, which is nice. But for me it makes no sense to have the lightbox, because the images won’t appear larger. How can I prevent the lightbox function on smaller screen sizes? In CSS I would do it with ”@media only screen”, in javascript I don’t know…
Thanks a lot!
Best regards
Andreas Haas
you could try something like this:
if( $(window).width() > 400 ){
$('#grid').grid();
}else{
$('#grid').grid({
lightBox: false,
});
}
I hope this make sense
Thanks! Where do I have to put the code? I tried different positions without success. 
in your HTML page you already got something like this:
$('document').ready(function(){
//INITIALIZE THE PLUGIN
$('#grid').grid();
});
just replace it for this:
$('document').ready(function(){
//INITIALIZE THE PLUGIN
if( $(window).width() > 400 ){
$('#grid').grid();
}else{
$('#grid').grid({
lightBox: false,
});
}
});
Thanks a lot! It works perfectly now.
Hello,
how can I manage to load 30 images of each spefic category ?
What I would like to have is :
- 30 images when I click the “category_ALL”, - 30 when I click the “category_1” - 30 when I click the “category_2” - 30 when I click the “category_3”
And so on…
How can I do that ?
Hello,
this plugin is not very advanced, the categories only filters the results in the grid, they don’t load more items, but if this is really necessary I would recommend you the advanced version of this plugin which is this one: http://codecanyon.net/item/media-boxes-responsive-jquery-grid/5683020
in that one you can specify the minimum of items per category (in your case would be 30) so it loads more if it is necessary 
Best, David
Hi,
I’ve just bought your script and I love it. I have one question though. I use the data-url option in the box div, but I’d like to open the link in a new window. Is it possible? Thanks for your help, Marc
I think I fixed the problem, I removed the data-url info and added :
<script type=”text/javascript” charset=”utf-8”> $(”#grid”).click(function() { window.open(‘URL’); return false; }); </script>
awesome
glad you found a solution
Dear Sir, I’m sorry but your slideshow doesn’t work. I get always a blank page. Where is the problem? Regards Pietro Collini
Hello,
by slideshow you mean the lightbox? do you have an online example so I can inspect it?
also did you but the plugin from a different account? since you don’t have the “purchase” badge
Best, castlecode
I can duplicate the filter bar (lines 522 to 565) and give them an ID
<ul class="category-navbar" id="filtr-en" />and then use a simple
#filtr-en {display:none;} in the html page, but I just like to know if there is another and easier way to do that? Thanks
open the gridGallery.min.js file or the gridGallery.js file (depending on which one you are using in your page) and find this:
html("All")
in there you can change the All wordBest, castlecode
Hi, thanks for your answer but probably I was not clear enough (My english is not very good
I’d like to use it in two languages: “All” will be displayed in the english version, and “Toutes” displayed in the french version of my website. That’s the reason why I duplicated all the ul category-navbar section and gave them an ID. But I was looking for an easiest solution because I also need to translate the “Load more images” button. Thanks
<div id="grid">then add this attribute:
<div id="grid" data-allword="the ALL word">and then open the gridGallery.js file (the not minified version, also make sure to use it in your page) find this:
html("All")
and replace it for this:
html($container.attr('data-allword'))
I hope this make sense
.html('<i class="icon-arrow-down blink" /> ' +$container.attr('data-loadmore')+ ' <i class="icon-arrow-down blink" />');
Thank’s a lot for your help.
buenos dias David.
Estoy teniendo problemas cuanto hay muchas imagenes me dice que no encuentra el thumbail aunque están en su sitio, puedes echar un vistazo, apreta cargar más hast que veras que no aparecen las fotografías
Un saludo
http://www.video-boda.es/fotografia-bodadefinitivamente algo está pasando por que las rutas están bien y de repente los thumbails dan error mientras que si maximizas funciona
Hola,
acabo de revisar el link que compartiste, y las imagenes que no se cargan en la galeria no las puedo abrir en el navegador, por ejemplo, intenta abrir el link de esta imagen: http://www.video-boda.es/images/momentos-fotografia-valencia/thumb/video-boda-familia-30.jpg
como puedes ver la imagen no esta disponible, pienso que no es un problema con el plugin sino con la imagen, intenta ponerle permisos de escritura y lectura a esos archivos
Saludos, David
Buenas tardes. david el link que me das si que se abre
apreta el link y veras
Si deseas que te de acceso al ftp de las imagenes dame una dirección de email y te envio un acceso. Gracias
problema solucionado 