WordPress.org

Ready to get started?Download WordPress

Forums

Media Library Categories
suggestion to add a caption title (with example) (1 post)

  1. 100IT
    Member
    Posted 2 years ago #

    Changing line 59 in shortcode.php to add a caption text ( <div class='img_caption'>".$caption."</div> as an example ) under the image would be a nice feature I think. This works: $content .= "<li>".(($include_link=="true")?"<a href='".$fileUrl."' target='$target' rel='$rel'>":"")."<img src='".$thumb[0]."' alt='".$caption."' />".(($include_link=="true")?"</a>":"")."<div class='img_caption'>".$caption."</div></li>"

    This adds a title.

    http://wordpress.org/extend/plugins/media-library-categories/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic