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