In header.phtml I add new banner:

<div class="promo hide" id="promo"> <span class="closebtnpr" id="dismiss">x</span>
  <center><b><font color="red">BLACK WEEK!:</font> TYLKO TERAZ <b><font color="red">NAWET DO -63%*</font></b> NA +150 MAREK PREMIUM!</b></center>

But now this banner is displayed in Polish language on all stores website. How can I translate this banner for others websites stores?

  • first you need to put text like <?php echo __( 'your-context'); ?> and put translation in CSV like magento.stackexchange.com/questions/284768/…
    – Pawan
    Nov 24, 2019 at 14:41
  • Thank you. You can add answear below. After this I give you vote.
    – Sylvester
    Nov 24, 2019 at 15:00
  • welcome :) glad to know it worked!
    – Pawan
    Nov 24, 2019 at 15:14

1 Answer 1


As I said in comment, You need to Add text like:

<?php echo __('your-context'); ?>

After that you need to put translation in CSV file.

For more information about How to add translation You can refer Link

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.