How to add Line breaks in Request Template

Hi,

I have this code to add description to request page.
I would like to add line breaks as show below but its not working.

add_filter(
    'hivepress/v1/forms/request_update',
    function( $form ) {
        $form['description'] = 'first phrase <br>

second phrase <br>';

        return $form;
    },
    1000
);

I though of using templates but whenever you try to edit a template. its remove all the blocks and gives you an empty page. you cannot add the block that we’re previously there.

so this code at least helps to add a description but it renders in a straight line without any breaks

please help.

Hi,

Sorry, there’s no simple code snippet for this. We recommend creating a template, they work correctly How to customize templates - HivePress Help Center (you need to add two blocks, Page Title and Form).

​I hope this is helpful to you.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.