Support » Plugin: Block Lab » Change the textarea p tags

  • Resolved 63N


    Hi, I’m just trying out your plugin and am looking for a way to wrap the new lines in a text area with a different html tag and add a class.

    Is there an easy way to do this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ryan Kienstra


    Hi @63n,
    Thanks for asking.

    There isn’t an option now to wrap new lines with a different HTML tag.

    You probably saw this, but the only options for new lines in the Textarea field are:

    • Automatically add paragraphs
    • Automatically add line breaks
    • No formatting

    But if there are many people that would find this useful, we’ll consider it.

    If you’d like, opening an issue in the GitHub repo might help. People are more likely to notice it there and comment on it:

    Thanks, and have a great day!


    • This reply was modified 3 months, 3 weeks ago by Ryan Kienstra.

    Thanks Ryan, I did have a look at those settings.

    I realise it’s probably a pretty rare use case.

    I could do a find and replace type thing programmatically, but is there a more elegant way, like using block_value?

    Something along the lines of how the multi-select works?

    <?php foreach ( block_value( 'features' ) as $value ) : ?>
    <li><?php echo $value; ?></li>
    <?php endforeach; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.