Home Button Need In Top Menu Item

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 years ago
I need Home Button on Top Menu Items
9 years ago
Hi,

You can add home buton .  Views / Catalog / TopMenu.cshtml  file open and add a line like below :
<li>
                        <a href="@Url.RouteUrl("HomePage")" class="btn-main"><span class="icon icon-home"></span></a>
                    </li>

Hope this help you .


Thanks
9 years ago
mtek wrote:
Hi,

You can add home buton .  Views / Catalog / TopMenu.cshtml  file open and add a line like below :
<li>
                        <a href="@Url.RouteUrl("HomePage")" class="btn-main"><span class="icon icon-home"></span></a>
                    </li>

Hope this help you .


Thanks


is there no work with admin panel without source code editing
9 years ago
Mobile Doctor wrote:
Hi,

You can add home buton .  Views / Catalog / TopMenu.cshtml  file open and add a line like below :
<li>
                        <a href="@Url.RouteUrl("HomePage")" class="btn-main"><span class="icon icon-home"></span></a>
                    </li>

Hope this help you .


Thanks

is there no work with admin panel without source code editing



<li style="min-width: 20px;"><a style="padding: 0;" href="http://www.yourwebsite.com/"><i style="font-size: 20px;" class="fa fa-home"></i></a></li>

add this in TopMenu.cshtml after
<ul class="top-menu">
    @Html.Widget("header_menu_before")
8 years ago
or

<li><a href="http://www.yourwebsite.com/">Home</a></li>


add this in TopMenu.cshtml after
<ul class="top-menu">
    @Html.Widget("header_menu_before")


also to get HOME for mobile version add same this

<li><a href="http://www.yourwebsite.com/">Home</a></li>

after

<ul class="mob-top-menu">
        @Html.Widget("mob_header_menu_before")
7 years ago
Go to settings->All Settings
Write displayhomepagemenuitem in search
Update the value with True if False.
If already true, then I am afraid you changed your code. ;)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.