GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Wordpress, how to make gallery justified/grid? (https://gfy.com/showthread.php?t=1166841)

druid66 05-18-2015 12:59 AM

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?

druid66 05-18-2015 01:16 AM

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.

just a punk 05-18-2015 01:31 AM

Can't see any problem there. Any pinterest-like grid theme can do that.

druid66 05-18-2015 01:37 AM

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?

druid66 05-19-2015 12:37 AM

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?

AdultSites 05-19-2015 12:43 AM

Add a child theme, and you can do anything with css or php modifications, if needed.

druid66 05-19-2015 12:48 AM

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?

ContentPimp 05-20-2015 12:30 AM

Did u try with nextgengallery?

druid66 05-20-2015 12:39 AM

did you actually read my post?

HowlingWulf 05-20-2015 07:21 AM

Try setting the image class to a specific height and float left. At the end of all images make sure to clear the float.

druid66 05-20-2015 07:23 AM

Quote:

Originally Posted by HowlingWulf (Post 20478800)
Try setting the image class to a specific height and float left. At the end of all images make sure to clear the float.

thanks, i'll try this, could be what i'm looking for.


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