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 years ago
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 years ago
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 years ago
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 years ago
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 years ago
Excellent Mariann it worked for me thank you so much.
8 years ago
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 years ago
How do you that?
7 years ago
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 years ago
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.