• Resolved fmarzocca

    (@fmarzocca)


    Hi,

    I am often in the need to show the subtitle on two or more rows, deciding the exact point for the line-break…

    Example:

    When every man
    will have reached happiness,
    time will no longer exist

    Which character should I put in the subtite line to insert a line-break? I tried with \n or <br /> but they don’t work.

    Thanks

    Fabio

    https://www.ads-software.com/plugins/subtitles/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Philip Arthur Moore

    (@philiparthurmoore)

    Hi Fabio. Does the br tag work? I can’t remember off the top of my head and I’m not at my computer right now. Let me know. Thanks!

    Thread Starter fmarzocca

    (@fmarzocca)

    Hi Phil,

    thank you for your answer.

    No, it doesn’t work as it is “polished” by WP when you save the post.

    Plugin Author Philip Arthur Moore

    (@philiparthurmoore)

    Okay. I’m away from home but will be back later tonight. I’ll give you some code to handle this. Cheers.

    Plugin Author Philip Arthur Moore

    (@philiparthurmoore)

    Hi Fabio,

    I’m happy to update this in the next release but in the meantime you can open subtitles/admin/subtitles-admin.php and change this:

    $subtitles_allowed_tags = array(
    				'i' => array(), // italicized text
    				'em' => array(), // emphasized text
    				'strong' => array(), // strong text
    			);

    To this:

    $subtitles_allowed_tags = array(
    				'br' => array(), // line breaks
    				'i' => array(), // italicized text
    				'em' => array(), // emphasized text
    				'strong' => array(), // strong text
    			);

    That will allow the use of br tags.

    Thread Starter fmarzocca

    (@fmarzocca)

    Perfect!

    Thank you, very fast!

    Fabio

    Plugin Author Philip Arthur Moore

    (@philiparthurmoore)

    Great Fabio, I’ll mark this Resolved. Please leave me a review if you can and be sure to let me know if you run into any other issues. Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can I split the subtitle in more rows?’ is closed to new replies.