• Hello!

    I have a project that intentionally uses longer than average image captions, some of which are truncated as they run longer than the width of the image they accompany.

    I’m hoping there’s a way to get that caption to wrap to a second line.

    Thanks in advance for any help or pointers.

    -John

Viewing 3 replies - 1 through 3 (of 3 total)
  • I am also looking for this solution.
    Or a way to add the Alt. or caption text.

    Thanks

    if you change the css in the plugin….
    /wp-content/plugins/shadowbox-js/shadowbox/shadowbox.css
    Line 15
    make it:
    #sb-title,#sb-title-inner{height:auto;line-height:26px;}

    this might get over written in the next update so beware.
    ??

    Cheers

    Plugin Author Matt Martz

    (@sivel)

    You can always supply Shadowbox JS with a path to a custom CSS:

    How can I use my own custom shadowbox.css?
    Just as above this can be accomplished using filters. You will need to run a filter on ‘shadowbox-css’; and here is some sample code to show you how:

    function custom_shadowbox_css($url) {
    return get_bloginfo(‘stylesheet_directory’) . ‘/css/shadowbox.css’;
    }
    add_filter(‘shadowbox-css’, ‘custom_shadowbox_css’);
    Just drop that code, modifying to your needs, in your themes functions.js or as a custom plugin and enjoy.

    That comes from the FAQ for this plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Shadowbox JS] Wrapping Long Caption onto Second Line’ is closed to new replies.