How to add phone number and address in top header menu

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 yıl önce
I want to add a phone number and address to the <div class="header-lower"> I am using the default nopcommerce theme can somebody point me to right direction how to do that? Thanks.
8 yıl önce
I think the easiest way is add the following code:


<div style="font-size: 17px; margin-top: 5px; color: #2D405C;">
     1 234 56 78 90, my beautiful address
</div>


into this block in the Views\Shared\Header.cshtml:


<div class="header-logo">
     <a href="@Url.RouteUrl("HomePage")">
        <img title="" alt="@storeName" src="@Url.Content(logoPath)">
     </a>
</div>


after </a>
8 yıl önce
Thanks for the quick response I have attached link of the website where I will like to put the phone number.
https://www.dropbox.com/s/61athkbupcoif54/samplewebsitenopcommerce.png?dl=0
8 yıl önce
Ok, but this is header-upper )

Try to add
<div style="font-size: 17px; color: #2D405C; float: left; height: 46px; line-height: 46px;">
    1 234 56 78 90, my beautiful address
</div>

before
<div class="header-links-wrapper">
8 yıl önce
Excellent Mariann it worked for me thank you so much.
8 yıl önce
pjerald wrote:
I want to add a phone number and address to the <div class="header-lower"> I am using the default nopcommerce theme can somebody point me to right direction how to do that? Thanks.

It is better to add language string in stead of hard code string and then define value of language string from admin panel.
8 yıl önce
How do you that?
7 yıl önce
Mariann wrote:
Ok, but this is header-upper )

Try to add
<div style="font-size: 17px; color: #2D405C; float: left; height: 46px; line-height: 46px;">
    1 234 56 78 90, my beautiful address
</div>

before
<div class="header-links-wrapper">



I was wondering how to do this.  

Thanks Mariann!
7 yıl önce
sinaislam wrote:
I want to add a phone number and address to the <div class="header-lower"> I am using the default nopcommerce theme can somebody point me to right direction how to do that? Thanks.
It is better to add language string in stead of hard code string and then define value of language string from admin panel.


How to?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.