Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6647

    If I have an apostrophe in the metadata of a photo imported from Aperture or Lightroom in either the Title or Description fields, the Flashlight gallery cuts the text off at said apostrophe when display in lightbox mode.

    For example “David’s Store” becomes “David”.

    I’ve seen answers in other themes on this issue that suggest using the HTML entity for apostrophes but I think if this is a theme for photographers then it should handle this rather then asking users to maintain natural language metadata in our photo management app then change all the apostrophes in the image gallery after.

    Here’s an example of the issue:

    http://glark.org/iceland-countryside/

    In the first photo you can see the pop-up metadata includes the correct text but if you click on the photo the text cuts off at “it’s” in the lightbox.

    Love the theme aside from this weird little bug!

    Many thanks,

    David

    #54940

    Hey,

    as far as I know it’s a WordPress limitation and not a theme limitation. WordPress doesn’t support ‘ in media data fields but you need to write ‘

    (i.e. some forum posts: http://wordpress.org/support/topic/ (Purchase code hidden if logged out) or http://wordpress.org/support/topic/ (Purchase code hidden if logged out) -or-quotes or http://mcclellandmiscellanea.wordpress.com/2011/04/16/ (Purchase code hidden if logged out) -in-caption-for-picture/ )

    The reason is quite simple: PHP uses ‘ and ” to mark text strings, etc. and it can’t differentiate between “text” symbols and code/syntax symbols.

    #54941

    Argh. Okay, thanks for the info. :)

    #54942

    Glad that I could help you :)

    #54943

    It works !

    Just insert &#39 where you want an apostrophe.

    Thanks.

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Apostrophes Not Being Escaped In Lightbox Title or Description’ is closed to new replies.