Image Frames: lightbox not displaying title

resolved (15 posts) (4 voices)

  1. bemciver
    Member

    Hi -- I tried using the image frames shortcode in one of my posts (it works great), but the associated lightbox image displays "undefined" where the caption/title should be at the bottom. I defined both "title" and "alt" when creating the image frame. Any ideas? Thanks

    Link to the post to which I'm referring is http://www.barbarawalshart.com/2011/07/01/grouchy/

    Posted 9 months ago #
  2. Elliott
    Support

    Hello bemciver,

    Open up /wp-content/themes/infocus/lib/shortcodes/17-frames.php and on line 112 you should see this,

    'alt' => $alt,

    Add this line right beneath it,

    'title' => $title,

    Posted 9 months ago #
  3. bemciver
    Member

    Thanks, Elliott -- this worked like a charm.

    Posted 9 months ago #
  4. janrzm
    Member

    Hi

    I'm having the same issue, however looking at my code this 'title' => $title, is already present. Any ideas?

    Posted 5 months ago #
  5. Elliott
    Support

    Hello janrzm,

    Your probably looking at line 88 instead of line 112.

    Posted 5 months ago #
  6. janrzm
    Member

    Hi

    See below extract line 110 - 114

    $out .= mysite_display_image(array(
    'src' => $matches[0],
    'alt' => $alt,
    'title' => $title,
    'class' => $class,

    Could it be anything else?

    Posted 5 months ago #
  7. Elliott
    Support

    And are you sure your adding the alt and title text to the shortcode?

    [image_frame style="border" alt = "New York" title = "Title Text" align="left" height="209" width="209"]
    http://www.yoursite.com/images/1.jpg
    [/image_frame]
    Posted 5 months ago #
  8. janrzm
    Member

    This is my code

    Calf Recycling - Leica M9 - 50mm Voigtlander Nokton f/1.1 [image_frame style="border" align="center" alt="Tiki Tour - Whakatane" title="Calf Recycling"]http://aperturepriority.co.nz/wp-content/uploads/2011/12/Calf-Recycling.jpg[/image_frame]

    Posted 5 months ago #
  9. Elliott
    Support

    Send us a link to your page so we can see it in action.

    Posted 5 months ago #
  10. janrzm
    Member

    http://aperturepriority.co.nz/?p=597#!prettyPhoto/1/

    Thanks

    Posted 5 months ago #
  11. Elliott
    Support

    Open up /wp-content/themes/[your_theme]/lib/functions/image.php and change lines 249 - 251 to this,

    $out .= '<span class="transparent_frame' . $align . '">' . $image;
    $out .= '<a title = "'.$title.'" href="' . esc_url( $link_to ) . '" rel="prettyPhoto">';
    $out .= '<img alt="'.$alt.'" title = "'.$title.'" src="' . esc_url( THEME_IMAGES . '/shortcodes/transparent.gif' ) . '" style="height:' .
    Posted 5 months ago #
  12. janrzm
    Member

    Works great thanks again Elliott

    Posted 5 months ago #
  13. janrzm
    Member

    Hi Elliot, you gave me the changes above but they no longer work no I have upgraded Infocus, can you please let me have the new code.

    Cheers

    Jason

    Posted 3 months ago #
  14. Webtreats
    Support

    HI janrzm,

    The lines of code are now on line #'s 297 - 281

    In the same file:

    /wp-content/themes/[your_theme]/lib/functions/image.php

    Posted 3 months ago #
  15. janrzm
    Member

    Thanks Webtreats. Just for the benefit of anyone else that follows this thread, that is lines 279 - 281. Cheers Jason

    Posted 3 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme