Categories

Featured templates

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

Grace Kerrigan September 26, 2016
Rating: 5.0/5. From 3 votes.
Please wait...

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
Premium Prestashop Templates
This entry was posted in PrestaShop Tutorials and tagged line break, module, output. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket