How to manage a dropdown list as a link to a mobile device
Hi, I am facing some problems. In the recycle bin with the header I used drop down, but when I resize the media to responsive (mobile) so it should be a simple hyperlink, but it works like a dropdown. This works according to the download markup.
So can someone tell me how to change the markup so that in desktop size it will work as a dropdown menu and on mobile it should be like a link
here as markup for whole headers headers
<div class="row">
<div class="col-md-12">
<ul class="nav navbar-nav navbar-right">
@Html.Widget("header_links_before")
@Html.Action("AdminHeaderLinks", "Common")
@*<li>
@Html.Action("TaxTypeSelector", "Common")
</li>
<li>
@Html.Action("CurrencySelector", "Common")
</li>
<li>
@Html.Action("LanguageSelector", "Common")
</li>*@
@if (Model.IsAuthenticated)
{
<li><a href="@Url.RouteUrl("CustomerInfo")" class="account">@Model.CustomerEmailUsername</a></li>
<li><a href="@Url.RouteUrl("Logout")" class="ico-logout">@T("Account.Logout")</a></li>
}
else
{
<li><a href="@Url.RouteUrl("Register")" class="ico-register">@T("Account.Register")</a></li>
<li><a href="@Url.RouteUrl("Login")" class="ico-login">@T("Account.Login")</a></li>
}
@if (Model.AllowPrivateMessages)
{
<li>
<a href="@Url.RouteUrl("PrivateMessages", new { tab = "" })" class="ico-inbox">@T("PrivateMessages.Inbox")<span>@Model.UnreadPrivateMessages</span></a>
</li>
if (!string.IsNullOrEmpty(Model.AlertMessage))
{
<script type="text/javascript">
$(document).ready(function () {
displayPopupNotification('@Html.Raw(HttpUtility.JavaScriptStringEncode(Model.AlertMessage))', 'success', false);
});
</script>
}
}
@if (Model.ShoppingCartEnabled)
{
<li id="topcartlink" class="dropdown">
<a href="@Url.RouteUrl("ShoppingCart")" class="ico-cart dropdown-toggle" data-toggle="dropdown">
<span class="cart-label">@T("ShoppingCart")</span>
<span class="cart-qty">@T("ShoppingCart.HeaderQuantity", Model.ShoppingCartItems)</span>
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
@Html.Action("FlyoutShoppingCart", "ShoppingCart")
</ul>
</li>
}
@if (Model.WishlistEnabled)
{
<li>enter code here
<a href="@Url.RouteUrl("Wishlist")" class="ico-wishlist">`enter code here`
<span class="cart-label">@T("Wishlist")</span>
<span class="wishlist-qty">@T("Wishlist.HeaderQuantity", Model.WishlistItems)</span>
</a>
</li>
}
@Html.Widget("header_links_after")
</ul>
</div>
</div>
Please check the image link below
http://imageupper.com/i/?S0200010090013K14096405471629783 http://imageupper.com/i/?S0200010090023K14096405471629783tw
+3
source to share