This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Alyeska – PrettyPhoto and Galleries

  • Creator
    Topic
  • #1799

    I’m using Alyeska 2.1.1 and WordPress 3.5.

    When I create a WordPress Gallery and add either a “caption” or “description” to a photo in the galler, neither will appear in the pretty pix pop up for those photos. It defaults to simply showing the image file name. Anything I’m missing or can do?

    Thanks.

    * I tried searching this new support forum, but only got a single hit for “prettyphoto”.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #1802
    Jason Bobich
    Keymaster

    Hello,

    What displays is the title of the image. If you haven’t set the title to something custom, this will be the name of the image, but you can change this by editing the attachment in your WP Media Manager.

    #1805

    Thanks for the detailed response in such a short time. Still enjoying your theme.

    The “Title” I like to leave as the original uploaded image name. I have 10’s of thousands of photos in my photography software library and by keeping these the same, allows me to quickly find it again there. I had the same issue with a previous theme (that also used PrettyPhoto) and there was a workaround for it that I’ll have to see if I can dig up. I remember it involved adding another attribute in the HTML for each photo.

    In any case, it would be amazing if I could use either WordPress’ “caption” or “description” field to provide a picture’s caption, which would then be displayed in the PrettyPhoto pop-up, allowing the photo title to be arbitrary. WIthout this integration, it forces people to rename the title of every single picture they upload (not to mention, losing the reference back to their photos in their personal software libraries). Yes, I know… I could put a “caption” in the “Title” field and then put the image name in the description field as one work around, but I’m trying hard not to. 😉

    Thanks for listening. Maybe consider it an enhancement for a future release, if it is possible(?). That reminds me… I’m 3 or 4 Alyeska releases behind. I guess I need to get up to date.

    Cheers.

    #1819
    Jason Bobich
    Keymaster

    I understand what you’re getting at, but it most likely will not happen.

    Currently the way things are setup, the theme uses javascript to lightly tag on the functionality of the lightbox to what WordPress already has for a gallery. So, in other words the theme does not alter the HTML markup or output for WordPress galleries in any way.

    Now, the way prettyPhoto works is that it takes the title tag of whatever anchor tag is linking to the lightbox popup, and uses that as the description of what shows up in the lightbox.

    <a href="image.jpg" title="Title of Image">
           <img src="thumbnail.jpg" />
    </a>

    Then the theme goes through and appends with javascript the lightbox selector in order to trigger prettyPhoto. This allows for a simple, added feature of the theme. So, because this HTML structure is already setup by WordPress, to accomplish what you’re suggesting means that you’d have to add a whole new PHP process to re-structure WordPress’s [gallery] shortcode. The payoff here would simply be that one could use the “description” instead of the “title” in the lightbox popup. That just doesn’t seem worth it from my perspective.

    #1852

    Ok – I see and I think you get my point. I like for picture “captions” to be in the WordPress “caption” field because I feel if I ever wanted to switch to a different theme one day… that theme’s photo viewer of choice just might use WordPress’ “caption” field for what to display for a picture’s caption. A picture’s title and its caption are two distinct things in my mind… kinda like I wouldn’t want to put a dollar amount in a description field in some accounting software.

    Anyway, I wanted to mention one of my original reasons for wanting the change was invalid. I mentioned I needed the title to remain the same as the image file name… as when it was uploaded to WordPress. Well, it appears WordPress maintains the original name of the file separate from the “title” (in WordPress 3.5, the original file name displays in a box on the right when a picture is selected in the media library), so there was no merit with that reasoning.

    So, I’ll be using the “put your picture captions for prettyPhoto in the WordPress ‘title’ field” workaround.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The forum ‘Alyeska Responsive WordPress Theme’ is closed to new topics and replies.