![]() |
Wordpress, how to make gallery justified/grid?
hey guys,
i think it's last step in perfecting my sites so i wont bother you for some time since now :D today problem is ugly looking way standard wordpress gallery is displaying thumbs. i know i can use plugin and have gallery look very nice but it's not what i'm looking for - i know it's possible to do this by hand and i wanna know if it's hard or doeable? basically i would like my galleries to have thumbs in form of justified/grid like here: http://netfruits.com/wp-content/uplo...rid-Plugin.jpg what do you think guys, can you give me some tips how to make it relatively fast without learning shit for weeks, is it possible? |
thing is i can use plugin like this one for example:
Demo | Responsive Gallery Grid but it fucks up my lightbox styles i've managed to add to my theme and i have no idea where to add my styles so i could have it and in same time have this grid thumbs. |
Can't see any problem there. Any pinterest-like grid theme can do that.
|
1. i already have theme which i've spend some time tweaking it.
2. yday i've spend whole day trying to add to ahref tag class i wanted and i finally did it. 3. now i want thumbnails to be displayed in form of justified/grid like in example above. now if you could help me instead of telling me obvious that there's lots of themes like this i would be very happy ;) so yday i managed to add class="mystyle" to ahref tag in gallery like this one: [gallery link="file" ids="2269,2268,2267,2266,2265,2264"] i 've achieved it by adding line at the end of functions.php: function my_get_attachment_link($html) { $postid = get_the_ID(); $html = str_replace('<a', '<a class="mystyle"', $html); return $html; } add_filter('wp_get_attachment_link', 'my_get_attachment_link', 10, 1); but if i'll install plugin from this example http://bdwm.be/rgg/demo/ my style stops working. do you have any idea where should i add my style this time? |
c'mon guys ffs there's plenty of plugins offering grid thumbnails displays but no solution in form of some css or smth like it, is it really that hard?
tried to google it but all i've found was one fucking plugin after another + themes, where's code for making grid? how does it look like? |
Add a child theme, and you can do anything with css or php modifications, if needed.
|
why would i need child theme?
i got separate domain where i'm testing shit before i'll make it live, it's not a problem of testing some stuff, problem is "how to" i do not know how to display standard wordpress gallery as grid without using plugin. i'm sure there must be some solution, maybe even some copy/paste code to replace somewhere in wordpress i just can't dig into it. or is it complicated beyond php? do i need java, jquery for it - stuff like this rly? |
Did u try with nextgengallery?
|
did you actually read my post?
|
Try setting the image class to a specific height and float left. At the end of all images make sure to clear the float.
|
Quote:
|
All times are GMT -7. The time now is 01:50 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123