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.
Il y a 8 ans
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.
Il y a 8 ans
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>
Il y a 8 ans
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
Il y a 8 ans
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">
Il y a 8 ans
Excellent Mariann it worked for me thank you so much.
Il y a 8 ans
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.
Il y a 8 ans
How do you that?
Il y a 7 ans
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!
Il y a 7 ans
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.