Title from a link?
  • Hi there... how can I add a title when opening from just a text link? it pulls from the "alt" tag of a thumbnail image, but I don't see anywhere how to add a title if there is no image aside from using the API. Is there a way to do it? or do I have to use the API call?
  • For now you have to use the API. I'll try to find a neat way to display a title when you uses simple links.

    Thanks.
  • I found a solution for this ... see: http://www.herndonheald.com/prettyphoto.php

    The only problem with my solution is that it won't pass w3c validation,
    because "link" is not a valid attribute for .

    Check out the HTML on that page to see how the "link" attribute is used within
    and also download my special version of the prettyPhoto JS script.



    .
  • Do you think there is a valid way to put hyperlinks in the photo caption ?
    I need to show previews of different work (for writers), they ask me if it was possible that the user download the different files (for example: .pdf, .doc etc.)

    hope you understand my english,
    Thanx,
    Merci.
    y.
  • I too would like to know if it is possible to add website/pdf download links to captions underneath videos in the pop up window.

    Is this possible, if so, how?????
  • @ive & peachpost:
    it is possible to pass html-code to the lightbox as description text. You have to use html-entities inside the title-element of the href-tag. Unfortunatly I could not figure out how to show you an example here in the forum, because it automaticaly transfers entities to html. But you can have a look in the index.html file of the download package there is an example (stand alone picture).
    cs.
  • Thanks for answering guys, I figured it out with the html intities it works!
    Buuuuuuut now when you put your mouse over the link (for instance the thumbnails of pictures that will be opened via PP) the browser tooltip shows the title including the intities and href and paths and everything... :^(

    it works but it looks bad if you hover for to long over the link.
    Also some say it is not valid html...

    I am still struggling with this...

    y.


  • Aides-nous Stéphane! ;^)
  • You could hide the browser's native tooltip with JQuery:
    http://stackoverflow.com/questions/1299772/jquery-hide-native-tooltip-resolved

    By the way, if this helps anyone, I was unable to add a < character using &lt;
    I tried again and again and it always showed up in my PrettyPhoto title with the html tag, but not rendered as html.

    This could be a Wordpress problem. But for the record, I finally solved it using the numerical entity, i.e. &#60; instead of &lt; and &#62; instead of &gt;

    Hope that helps!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!