If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

Featured templates

PrestaShop 1.6.x How to allow line breaks for module outputs

This tutorial will show you how to allow line breaks for module outputs in PrestaShop 1.6.x. templates.

  1. Log into your cPanel dashboard and enter File Manager.

  2. Navigate to the themes/themeXXX/modules directory and select the needed module folder.

  3. Let’s allow line breaks for Contact information block module. In order to do that, open blockcontactinfos.tpl file for editing.

    prestashop_1.6.x_how_to_allow_line_breaks_for_module_outputs_1

  4. Then locate the following line:

     {$blockcontactinfos_company|escape:'html':'UTF-8'}

    prestashop_1.6.x_how_to_allow_line_breaks_for_module_outputs_2

  5. Change it to:

     {$blockcontactinfos_company|nl2br}

    prestashop_1.6.x_how_to_allow_line_breaks_for_module_outputs_3

  6. Press the Save button to save changes and refresh your website.

That is the end of the tutorial. Now you know how to allow line breaks for module outputs in PrestaShop 1.6.x. themes.

Discover more PrestaShop templates in our collection.

Feel free to check the detailed video tutorial below:

PrestaShop 1.6.x How to allow line breaks for module outputs