Seattle Community

<span class="basic_member_name">Bruce Colthart</span>
Bruce Colthart
B2B graphic designer & writer
Paramus, New Jersey
Posted by Bruce Colthart, Paramus, New Jersey | Jun 30, 2009

Subscribe to WordPress Chatter - Discussion How do I: Fill page on Wordpress blog with image gallery?

  • Please let me know if this kind of is not what you intended these discussions for *

Being primarily a print designer, I'm often frustrated trying to accomplish [what I think should be] simple tasks in Wordpress. I'll often kill an hour or two at a time trying to get some background info through Google, or through the Wordpress.org site.

In this case, I want to have a secondary page on my blog serve as an image portfolio, presenting the visitor a grid of thumbnails. Clicking on each one would present an enlarged image floating over the page.

I know there are several plug-ins for presenting those enlarged images. One I've chosen for now is FancyBox (http://blog.moskis.net/downloads/plugins/fancybox-for-wordpress/) because I like how it styles the floating box.

But the concept I can't get straight is how to make a gallery of images that will appear on one existing page! I know of 'Gallery shortcode' within Wordpress, but it seems to me to be geared to individual posts versus images on a page.

I'm also using the Thesis theme, and know "of" hooks and one gallery-related hook, but in their forum, someone has already asked an elementary question re: image galleries but has received no answer.

So I guess I'm just looking for some conceptual Wordpress assistance about making a page with a grid of images. I want to evolve my blog to incorporate images of my work along with descriptions for each image.

Thanks in advance.

20 Bizniks have posted replies

  • Bob Dunn
    Posted by Bob Dunn, Seattle, Washington | Jun 30, 2009

    Hey Bruce, first off, this is exactly the kind of stuff I like to see here. As I'm hoping this community can weigh into discussions like this.

    So, let me get this straight. The one plugin your are talking about (which seems pretty cool) you are using for your portfolio, right?

    Then you want to display a single page with a gallery of images for viewing? Are these images static where you do not click on them for a larger view, like in your portfolio?

    I may be thinking something different here, but you can place single images, one after another in a grid by selecting "none" when place them. Or am I not on the right track?

  • Bruce Colthart
    Posted by Bruce Colthart, Paramus, New Jersey | Jun 30, 2009

    Right now, the FancyBox plug-in will activate when any picture on my site – that is linked to an image – is clicked, which is a good start.

    I now have a page on my blog with no pictures. I want to upload a bunch of my print portfolio pictures to display on that one page, in the form of static thumbnails (in a grid formation). Then, when each thumbnail is clicked, image will expand to full-size (and hopefully be styled by FancyBox).

    I guess I haven't tried your last item, which I will. But does that apply to just a single post? Like I said, I'm looking to have a portfolio-only page on my blog.

    I hope I clarified... and thanks!

  • Bob Dunn
    Posted by Bob Dunn, Seattle, Washington | Jun 30, 2009

    That makes sense. Yes, you can do it as I had explained, but it probably would be easier to use the gallery shortcode. That can be used on a page as well as a post.

  • Bruce Colthart
    Posted by Bruce Colthart, Paramus, New Jersey | Jun 30, 2009

    Ahh, okay...I only know so much about that. I read Wordpress codex documentation on the subject twice, but it still left me uneducated.

  • Bob Dunn
    Posted by Bob Dunn, Seattle, Washington | Jun 30, 2009

    Yeah, those shortcodes can be confusing.

    Here's a snippet I found that may help.

    Click on the Upload/Insert image icon and upload some photos. Each time you upload a photo, enter the title and then click on the Save All Changes button. You'll be taken to the Gallery tab, which will show all of the photos you've uploaded to be attached to this page.

    If you want to upload more photos at this point, just click on the From Computer tab at the top and upload another photo.

    When you've uploaded all the photos you want (you can add more later), click on the Insert gallery button. This overlay box will disappear and you'll see your post again. The page will have the gallery icon placeholder in the spot where you left the cursor

    Note that because your uploading these photos while adding/editing this particular page, all of these photos will be "attached" to this page. That's how you know they'll be in the gallery on this page. Any other photos that you've uploaded at other times will not be included.

    Now publish or save your page. Now when you view the page, there's a gallery of your images

  • Bruce Colthart
    Posted by Bruce Colthart, Paramus, New Jersey | Jun 30, 2009

    Thanks! This sounds downright comprehensible. I'll give it a whirl ASAP and report back.

  • Bruce Colthart
    Posted by Bruce Colthart, Paramus, New Jersey | Jun 30, 2009

    Great – I can see it working already. I'm having other problems (some files won't upload, etc), but I'm on the right path. Thanks again for spelling it out for me Bob.

  • Bruce Colthart
    Posted by Bruce Colthart, Paramus, New Jersey | Jul 01, 2009

    Follow-up (again, I've put some effort into trying to get answers on my own):

    I've uploaded a couple of large jpeg photos, each different dimensions (but same proportions) to populate the gallery on my particular page. The page's gallery of photos is made up of thumbnails. Clicking any of the thumbnails takes me to a new "secondary" page, featuring a medium-sized version of my photo, along with photo's description.

    Seems that the photo on this "secondary" page is sized to Medium (in this case, 300 x 244 pixels) automatically. But that image is smaller than I want; I need it wider to match width of the description below it.

    Can I change size of these reduced photos on these "secondary" pages? What's the best approach?

    Thanks!

  • Bob Dunn
    Posted by Bob Dunn, Seattle, Washington | Jul 02, 2009

    Hey Bruce, the easiest way to do this, is to go into your dashboard, click on "settings" then "media" and you can change the size of your default "medium size". Of course this will change all your medium sized images...

  • Rick Anderson
    Posted by Rick Anderson, Edmonds, Washington | Jul 06, 2009

    I think a more flexible solution is to insert the photo into the page and then edit it. Select the picture, hit the edit icon and select the advanced tab. There you can specify the exact dimensions you want it to have. This way each picture can have a different size without affecting the others.

    I couldn't find any way of editing the image during insertion. The only way I could get there was to insert and then edit. Mind you this is in 2.7 It may be easier to set the properties of an image in 2.8.

  • Bob Dunn
    Posted by Bob Dunn, Seattle, Washington | Jul 06, 2009

    Hey Rick, that would be a flexible way to do it ,but time consuming. I believe Bruce wanted each one a specific size, so setting that it as a default would have consistency and save time as well.

  • Rick Anderson
    Posted by Rick Anderson, Edmonds, Washington | Jul 06, 2009

    True Dat - it is nice not to have to repeat the same task over and over again. Especially if you have to add the extra step of inserting and THEN editing.

  • Bruce Colthart
    Posted by Bruce Colthart, Paramus, New Jersey | Jul 06, 2009

    Thanks for your thoughts Rick. In my case, the pages I want to change the image in are called "attachment pages" and are generated automatically when using the "gallery" image-posting function in WP (since 2.5, I believe). Gallery pictures (thumbnails) in a post can link to either the full-sized image OR to an attachment page that features your photo's description and a WP-determined "Medium" size version of photo. But you can't edit an attachment page like a typical post; there's no easy modifications to be made without going into deep, dark coding places.

  • Rick Anderson
    Posted by Rick Anderson, Edmonds, Washington | Jul 06, 2009

    Did you consider using a "Lightbox" plug in for that? There is a very popular J-Query Lightbox plug in that lets you specify the thumbnail size while the displayed size is the same as you uploaded. It doesn't take you to a new page, the light box displays over the current page which means that the entire page doesn't need to re-render saving bandwidth and time.

    I've used an ASP.Net equivalent of this on my regular website. Obviously architects need to display images to prospective clients undoubtedly in the same way you do.

    Here's a link to the plug-in I'm referring to http://wordpress.org/extend/plugins/jquery-lightbox-balupton-edition/.

    For what it's worth - good luck.

  • Bruce Colthart
    Posted by Bruce Colthart, Paramus, New Jersey | Jul 07, 2009

    I've been looking into many lightbox options, but I'm still attracted to the concept of an intermediate page – one where I can write a paragraph or two of description for each image in the lightbox. I need to have more than a title or short caption accompany each image. I don't think lightbox pop ups can or are meant to handle that much text.

    I may just have to make a separate, specially-formatted page for each project where I could put this description text (and also could also post additional views per project!) that's linked to each thumbnail on the "main" gallery page.

    Downside is, one would have to keep going back to main/gallery page to choose another project to view – unless each page could also have a "next" and "previous" link too. Hmmm...

    Thanks for the ideas and encouragement. I've got my work cut out for me, but at least I'm getting closer to a vision of what I want and need.

  • Rick Anderson
    Posted by Rick Anderson, Edmonds, Washington | Jul 07, 2009

    It seems to me like some sort of AJAX plugin is the ideal candidate for what you want to accomplish. AJAX allows the rendering of a portion of the page without re-rendering the entire page. There is an AJAX image gallery that looks like it might do what you want. http://wordpress.org/extend/plugins/post-rich-videos-and-photos-galleries/ In the screenshots section they show examples of images and text combined.

    There is no fundamental reason why a lightbox type of program can't show several paragraphs of text below the image.

    Website visitors have a limited capacity for page loading and page rendering. Having to switch back and forth between pages could be annoying enough that visitors would leave before seeing what you want them to see. Anything that avoids a page reload is a good thing from that perspective.

  • Bob Dunn
    Posted by Bob Dunn, Seattle, Washington | Jul 07, 2009

    Rick it right about the click thru. Less is better, obviously. And studies show you lose a small percentage of users every time they have to do another click thru.

  • Bruce Colthart
    Posted by Bruce Colthart, Paramus, New Jersey | Jul 07, 2009

    Okay... good info, much appreciated. I'll have to investigate AJAX plugins like you suggested Rick (The one you mentioned requires you host your images with them, but more importantly for me, has no Mac client).

    Again, my goal is to show examples of my projects along with sufficient commentary for each image. Further, I may want to have more than one image for each project, and varying amounts of text for each image. Doing so efficiently is key. Hopefully some plugin exists that can get me there.

  • Rick Anderson
    Posted by Rick Anderson, Edmonds, Washington | Jul 07, 2009

    I have another idea that might give you more control and flexibility. I'm going to assume that Thesis has a number of "widget ready" areas that you can add widgets to at your whim.

    The main concept is to create a sidebar that persists with the pages you choose that will serve as a menu of your projects. That menu would consist of a series of thumbnail images and perhaps some title text. Once you click on that image it takes you to a project page that has all the information about the project that you think is appropriate. The project page could have as many photos and as much text as you'd like. Every project page will also have that sidebar menu so it won't require the user to return back to the index page.

    That's the concept - here's how to get there:

    It takes 2 widgets and a little bit of html

    1: download and install TS Custom Widgets - it allows you to specifiy which pages you want particular widgets to show up on. This way your index widget could show up only on pages you choose. 2: download and install My Custom Widgets - this is essentially a widget wrapper that will turn any php, html or java script code into a widget.
    3. Make thumbnails of the desired size for the iconic image of each project. 4. Using html make an un-ordered list that uses thumbnail images you create as hrefs to specific pages. If you look at my blog (www.hungryarchitect.com) you'll see this very thing on my sidebar only it's a list of my blog posts, not images but the concept is the same. Insert that unordered list into a new custom widget.

    Presto - you have a CSS menu that is SEO friendly and the page only reloads when you move from one project to another.

    Remember to fill out the alt and title tag for the images. The title tag should be the name of the project or something like that. The thumbnail file name should also be SEO indexable so it could be XYZ_design_project.jpg rather than thumb1.jpg

    Obviously this isn't a gallery, but it is a pretty simple alternative that requires a little bit of simple html and returns a very flexible solution.

    Hey, if you want to chat about it feel free to give me a call. I'm not a web designer like Bob, but I am pretty competent at Wordpress and I'd be happy to give you the benefit of my free advice.

  • Bruce Colthart
    Posted by Bruce Colthart, Paramus, New Jersey | Jul 07, 2009

    Wow – you da man Rick! Thanks for the detailed idea! I've read it once, and it sounds like a nice solution. Will play with the idea and do some testing to see if it will cover my needs.

    You're clearly more experienced with Wordpress than I, and this ongoing conversation has been great – thanks for the time you've put into it, and thanks too for the offer to call.

    Will keep you posted...

Members posting in this topic

  • Bob Dunn
    Specializing in WordPress Websites ...
    Seattle, Washington
  • Bruce Colthart
    B2B graphic designer & writer
    Paramus, New Jersey
  • Rick Anderson
    Seattle area Residential Architect
    Edmonds, Washington

Post tags

  • wordpress
  • gallery
  • images
  • plugin
  • thesis