Hi I want to design link button with icon. When I click on link button or icon it will navigate to the url. For that I used the below code. It is giving me the link with icon next to the link. What I want is icon first and after that link button
@Html.Sitecore().BeginField("ReturnLink", new { @class = "link-arrow" })
<i class="icon">
@Html.Sitecore().Field("ReturnLinkIcon")
</i>
@Html.Sitecore().EndField()
<a class="link-arrow" href="www.google.com">Back To Internet
<i class="icon">
<img src="xxx.jpg">
</i>
</a>
Please help me how to display the icon first and then link next to icon like below
One way to have control over the link rendering is to build the HTML self. For this you must obtain the URL and the text of the LinkField.
See https://briancaos.wordpress.com/2012/08/24/sitecore-links-with-linkmanager-and-mediamanager/
Example In Razor
Of course you can better place the function in a helper class or do things in the controller.