Dear support!
I am using demo8 HTML theme. In the aside user section, in Sign Out menu item, I need to use button element instead of anchor. How to do that maintaining the same style of anchor. The code I am talking about is:
<!--begin::Menu item-->
<div class="menu-item px-5">
<a href="../../demo8/dist/authentication/layouts/corporate/sign-in.html%22%20class=%22menu-link%20px-5" target="_blank" rel="noopener noreferrer">Sign Out</a>
</div>
<!--end::Menu item-->
<div class="menu-item px-5">
<form asp-area="Identity" asp-page="/Account/Logout" asp-route-returnUrl="@Url.Action("Index", "Home", new { area = "" })">
<button type="submit" class="????????">Sign Out</button>
</form>
</div>
Hi,
You can use the below markup to put a button tag as the menu link:
<button type="submit" class="menu-link btn w-100 py-3 px-5">
Sign Out
</button>
<!--begin::Menu item-->
<div class="menu-item px-5 my-1">
<a href="#%22%20class=%22menu-link%20py-3%20px-5" target="_blank" rel="noopener noreferrer">
Account Settings
</a>
</div>
<!--end::Menu item-->