Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-18-2015, 12:59 AM   #1
druid66
Confirmed User
 
Join Date: Feb 2006
Posts: 994
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:



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?
__________________
Pure Japan japanese babes blog
druid66 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-18-2015, 01:16 AM   #2
druid66
Confirmed User
 
Join Date: Feb 2006
Posts: 994
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.
__________________
Pure Japan japanese babes blog
druid66 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-18-2015, 01:31 AM   #3
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,384
Can't see any problem there. Any pinterest-like grid theme can do that.
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-18-2015, 01:37 AM   #4
druid66
Confirmed User
 
Join Date: Feb 2006
Posts: 994
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?
__________________
Pure Japan japanese babes blog
druid66 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2015, 12:37 AM   #5
druid66
Confirmed User
 
Join Date: Feb 2006
Posts: 994
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?
__________________
Pure Japan japanese babes blog
druid66 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2015, 12:43 AM   #6
AdultSites
Confirmed User
 
Industry Role:
Join Date: Feb 2015
Posts: 203
Add a child theme, and you can do anything with css or php modifications, if needed.
AdultSites is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2015, 12:48 AM   #7
druid66
Confirmed User
 
Join Date: Feb 2006
Posts: 994
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?
__________________
Pure Japan japanese babes blog
druid66 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-20-2015, 12:30 AM   #8
ContentPimp
Confirmed User
 
ContentPimp's Avatar
 
Join Date: Nov 2008
Posts: 3,184
Did u try with nextgengallery?
__________________
Blog Post Writing and Reviews are **2 cents per word** & Titles and Gallery Descriptions **1 cent per word**

We also write Pay Site Reviews, SEO and Mainstream text
www.contentpimp.info
Contact me on ICQ at 400792466

Payoneer, Paxum and Paypal Accepted forms of Payment by the Pimp
ContentPimp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-20-2015, 12:39 AM   #9
druid66
Confirmed User
 
Join Date: Feb 2006
Posts: 994
did you actually read my post?
__________________
Pure Japan japanese babes blog
druid66 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-20-2015, 07:21 AM   #10
HowlingWulf
Confirmed User
 
HowlingWulf's Avatar
 
Join Date: Nov 2001
Posts: 1,662
Try setting the image class to a specific height and float left. At the end of all images make sure to clear the float.
__________________
WP Porn directory/review theme Maddos $35.

webmaster AT howling-wulf.com
HowlingWulf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-20-2015, 07:23 AM   #11
druid66
Confirmed User
 
Join Date: Feb 2006
Posts: 994
Quote:
Originally Posted by HowlingWulf View 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.
thanks, i'll try this, could be what i'm looking for.
__________________
Pure Japan japanese babes blog
druid66 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
gallery, wordpress, thumbs, justified/grid, guys, doeable, wanna, hand, hard, fast, learning, weeks, shit, tips, galleries, form, basically, time, bother, hey, step, perfecting, sites, nice, plugin



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.