• Hello
    I added jQuery Colorbox to my WordPress website but it doesn’t display my pictures titles. I tried putting a title in the “alternate title”, “legend” or “description” fields but none of them seems to be working.
    You can see it there: http://www.movezerb.com/wp/#portfolio
    According to the Colorbox theme I chose, the title should be displayed on top, next to navigation…
    Do you have any idea why it’s acting like that and what I can do to have titles?
    Thank you!

    http://wordpress.org/plugins/jquery-colorbox/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Yes, bump.

    This has happened since the 3.7 WordPress upgrade.
    Changing the jquery version doesn’t help either.
    Actually effects all Color Box based plugins.

    @acrane: If you require assistance then, as per the Forum Welcome, please post your own topic.

    @esmi, This is my topic.

    I’d thought I’d give the developer more info on the subject. You know, also in the Forum Welcome, “SEARCH FIRST:” – “Many of the questions that are posted in the forums have been posted many times before, and get the same answers each time. Before starting a new thread, please try searching the forums.”

    @acrane: This is not your topic. Please post your own topic and do not interrupt a topic created by another user.

    @movezerb,

    This solution works for me. Since the upgrade to 3.7, the answer slowly made it’s way out. Simply put this function into your functions file and you’ll have titles again.

    function my_get_attachment_link_filter( $content,$id ) {
            $title = get_the_title($id);
            $new_content = str_replace('<a ', '<a title="' . esc_attr($title) . '" ', $content);
            return $new_content;
    }
    add_filter('wp_get_attachment_link', 'my_get_attachment_link_filter', 10, 4);

    This solution also works for me.
    Thanks acrane !

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Colorbox doesn't display titles’ is closed to new replies.