Hi there. Thanks so much for your review and your comments. Please see this comment to learn more about adding HTML into the subtitle area.
Cheers,
Philip
Thread Starter
nuonis
(@nuonis)
Thank for your this, it’s helpful. A couple of more questions:
1. Is there a way to add a line break array? Not sure how to do it.
2. Is there a way to add these additional codes without changing the plugin files?
Thanks!
Sinoun
Hi Sinoun. You can just use br with an empty array. Like br and then array(). I will work on a way of making this easier in a future version.
Cheers,
Philip
Thread Starter
nuonis
(@nuonis)
Sorry for my ignorance, but not sure exactly how I would enter it. What exactly do I add to this?
$subtitles_allowed_tags = array(
'i' => array(), // italicized text
'em' => array(), // emphasized text
'strong' => array(), // strong text
'a' => array( // Link
'href' => array(),// Link URL
'title' => array(), //Link Title
'target' => array() //Link target
),
);
No worries! You’d need something like 'br' => array(),.
Thread Starter
nuonis
(@nuonis)
Thanks, Phillip! Would love to see this included in the next update so I don’t have to add it every time the plugin changes.
Also, if anyone is inserting this code as well, ignore the one I pasted above as it’s missing a character and will break your site. Use this instead:
'i' => array(), // italicized text
'em' => array(), // emphasized text
'strong' => array(), // strong text
'a' => array(), // Link
'href' => array(),// Link URL
'title' => array(), //Link Title
'br' => array(), //Line break
'target' => array() //Link target
Awesome! Yes I’ll try to get this included in the next update. It should be easy to do!