WordPress.org

Ready to get started?Download WordPress

Forums

Easy FancyBox
[resolved] Why is my title and description not showing up? (8 posts)

  1. David Goebel
    Member
    Posted 2 years ago #

    The popup is working, but the title and description are not showing. What am I missing and/or doing wrong?

    http://bravo.prototypetest.org/?page_id=44

    http://wordpress.org/extend/plugins/easy-fancybox/

  2. RavanH
    Member
    Plugin Author

    Posted 2 years ago #

    Your template is already integrating FancyBox. Using a plugin will conflict with it.

    Give the image LINK the attributes class="fancybox" title="Head Cheese" and the box should work on it with title showing.

  3. David Goebel
    Member
    Posted 2 years ago #

    Perfect, thanks! What about the description, is it possible to add that as well? I tried using description="something" but it didn't work.

  4. RavanH
    Member
    Plugin Author

    Posted 2 years ago #

    Nope, FancyBox only takes one value.

  5. David Goebel
    Member
    Posted 2 years ago #

    ok, thanks for the info

  6. oliviadesens
    Member
    Posted 2 years ago #

    In fact you can change the title by the description. Find the loop who call the image and the title and replace :
    title="<?php echo $photo->post_title; ?>"
    by
    title="<?php echo $photo->post_content; ?>"

    Example of loop : `

    <a id="fancy_gallery<?php echo $key; ?>" href="<?php echo $full_image_url[0]; ?>" rel="gallery" <?php if(!empty($pp_display_image_title)) { ?> title="<?php echo $photo->post_content; ?>" <?php } ?><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/white_slider_handle.png" alt=""/></a>`

    if you need to have also the title and the legend in fancybox, just write it in you description area, because it's take html instructions like </br>, etc...
    This is the aesiest way i found to have my description in fancybox.

  7. oliviadesens
    Member
    Posted 2 years ago #

    one more thing : in your description you can also have link, just you have to take care of how you write your quoted :

    use single quoted not double quoted :

    <a href='example.com'>work</a>
    instead of
    <a href="example.com">doesn't work...</a>

  8. jaeeun
    Member
    Posted 1 year ago #

    Hi oliviadesens, in which file can I find the loop?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic