Wordpress, how to make gallery justified/grid?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • druid66
    Confirmed User
    • Feb 2006
    • 994

    #1

    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
    Confirmed User
    • Feb 2006
    • 994

    #2
    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

    Comment

    • just a punk
      So fuckin' bored
      • Jun 2003
      • 32385

      #3
      Can't see any problem there. Any pinterest-like grid theme can do that.
      Obey the Cowgod

      Comment

      • druid66
        Confirmed User
        • Feb 2006
        • 994

        #4
        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

        Comment

        • druid66
          Confirmed User
          • Feb 2006
          • 994

          #5
          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

          Comment

          • AdultSites
            Confirmed User
            • Feb 2015
            • 203

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

            Comment

            • druid66
              Confirmed User
              • Feb 2006
              • 994

              #7
              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

              Comment

              • ContentPimp
                Confirmed User
                • Nov 2008
                • 3184

                #8
                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

                Comment

                • druid66
                  Confirmed User
                  • Feb 2006
                  • 994

                  #9
                  did you actually read my post?
                  Pure Japan japanese babes blog

                  Comment

                  • HowlingWulf
                    Confirmed User
                    • Nov 2001
                    • 1662

                    #10
                    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

                    Comment

                    • druid66
                      Confirmed User
                      • Feb 2006
                      • 994

                      #11
                      Originally posted by HowlingWulf
                      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

                      Comment

                      Working...