Header Menu Changes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
Hi,

I was wondering if I can get some assistance in locating the code to update or to make changes to the Header Menu list, such as changing the titles or the link behind them, etc.

5 years ago
Hello,

For title you have to change resource string at here.

http://admin-demo.nopcommerce.com/Admin/Language/Edit/1

If you want to change link than  you have to go at header link page I think at source code.

Or display order change also modification require at source code
5 years ago
webzest wrote:
I can get some assistance in locating the code to update or to make changes to the Header Menu list, such as changing the titles or the link behind them, etc.


Hi,

The code of the header view is in 'NopCommerceSite\Views\Shared\Components\HeaderLinks\Default.cshtml' (default) or 'NopCommerceSite\Themes\yourTheme\Views\Shared\Components\HeaderLinks\Default.cshtml'.

As mentioned above, to change text is in 'Edit Language Details' (basic user guide).
You can change order or distribution (take into account the css and box model); the links are in "Razor syntax" and are provided from source code, but you could put links to other sections of the store or external links.

I hope it has been useful.
Regards!
3 years ago
I need to make version № 2 "header-links" for footer .
So that the footer contains: "Customer Info" and "Logout".
instead of "NewsletterBox"
Thanks
3 years ago
Tvorim wrote:
I need to make version № 2 "header-links" for footer .
So that the footer contains: "Customer Info" and "Logout".
instead of "NewsletterBox"
Thanks


Don`t work:  

<div class="header-links-wrapper">
            <!--    @await Component.InvokeAsync("HeaderLinks")-->


            @if (Model.ShoppingCartEnabled)
            {
                <li id="topcartlink">
                    <a href="@Url.RouteUrl("ShoppingCart")" class="ico-cart">
                        <span class="cart-label">@T("ShoppingCart")</span>
                        <span class="cart-qty">@T("ShoppingCart.HeaderQuantity", Model.ShoppingCartItems)</span>
                    </a>
                </li>
            }
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.