How to change position of default welcome message in magento 2?
-
12-12-2020 - |
質問
I am customizing my Magento theme. I have come across the problem of customizing default Magento message. Is there any way to change to position this in the middle. Right now it is on the left side. I have applied the ultimo theme in which I am using this.
Moreover, in themes setting, there is no option to customize the default header. Any kind of help would be much appreciated.
I am using Magento 2.1 community edition.
解決
follow below steps to add image in top right container of your header:
1) Your image should at right location to work, for example taking "test.jpg"
/app/design/frontend/Infortis/base/web/images/test.jpg
2) Find your header.phtml
at below location
/app/design/frontend/Infortis/base/Infortis_Base/templates/html/header.phtml
and paste this line of code
<div class="jb_image"> <img src='<?php echo $this->getViewFileUrl('images/test.jpg'); ?>' alt="test"></div>
inside this section <div class="right-column"></div>
Clear and flush cache.
所属していません magento.stackexchange