Images

Support Area Forums Photobug Images

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
URL to the page in question:
  • Author
    Posts
  • #6713
    Chris Regan
    Participant

    A few questions on images. First, is there a way to change the gallery in the single post view so that it’s displayed as thumbnails, same as in the archive view?

    Second, images inserted into the post itself will be a direct link to the image file (or attachment page). I’d like to use the lightbox here instead. Thanks to the Chrome elements panel, I found that adding class=”lightbox” to the anchor does the trick, but I’m not sure where in the code this is being outputted. Can you point me to the right area to make the change?

    Lastly, captions for images aren’t being displayed except when the image is inserted into the post. Is it possible to display the caption in the lightbox and/or gallery view?

    Thanks,
    Chris

    #6717
    Bill Robbins
    Moderator

    Chris,

    Thank you for your business first of all. Let me see if I can answer your questions:

    Single Gallery Same As Archive

    You can do that with a bit of editing. Here’s how:

    1. Go to the Appearance section and select edit to open up the theme editor.
    2. From the list of files on your right, choose single.php.
    3. Replace all the content in single.php with this:

    4. Save your changes.

    That should let you use the layouts from the archive on the single page view.


    Adding Lightbox Links

    You care correct about the “lightbox” class being the key. The easiest way to do that is to insert the image you’d like to include in your post. Make sure you selected to have the image link to the file. Then switch to the HTML editor from the Visual one. Find the image you just inserted. It should have look something like this:

    
    <a href="http://themes.dev/photo/files/2012/04/buzz.jpg"><img src="https://themes.dev/photo/files/2012/04/buzz.jpg" alt="Buzz Lightyear" title="buzz" width="700" height="943" class="alignright size-full wp-image-28" /></a>
    

    Near the end it says:

    
    class="alignright size-full wp-image-28"
    

    Just add lightbox inside the “” and that should add the image to the pop up. It’ll look like this:

    
    class="alignright size-full wp-image-28 lightbox"
    

    Captions

    At the moment I don’t have an easy way to add in captions for the thumbnails or lightbox images. I’ll need to do a bit of experimenting to see what’s the best way to add those. We’ll roll that into an update to the theme once we have it sorted out.


    If you have any other questions, just let me know.

    Enjoy your weekend,
    Bill

    #7673
    karim hadid
    Participant

    Hi there,

    Any update re the captions not being displayed in the gallery?

    Thanks.

    Love the theme BTW.

    #7676
    Bill Robbins
    Moderator

    I’m glad you’re enjoying the theme. I believe I nearly have the captions sorted out for the galleries. Having my kids out for the summer slowed down development a good bit, but I’m slowly digging out.

    I should have that out for you at the first of the week. There is also a new Twitter widget that I’ll be including in the update too.

    Thanks,
    Bill

    #7695
    karim hadid
    Participant

    Sounds great. Thanks for the response.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Images’ is closed to new replies.