How to add custom links to the footer of your nopCommerce based website

For any website to be functional or effective, every element from the header to footer plays a big role in making the overall website informative and usable. Footer is a great place that gives store owners an opportunity to direct their customers (or users) to different parts of the sites or add contact information so that they can be easily reached.

Today, we will discuss, how to add custom links to the footer of your nopCommerce based website.

Go to: Nop.Web / Views / Common / Footer.cshtml

nopcommerce footer

When you open the file "Footer.cshtml" and you will see a div block like this:

<div class="footer-menu-wrapper">


Within this div, you will see 4 sub div blocks like this:

<div class="column information">
<div class="column customer-service">
<div class="column my-account">
<div class="column follow-us">


So, basically, each of these sub-div block can be place for your custom links. You can simply add your custom link like this:

<div class="column information">
            <h3>@T("Footer.Information")</h3>
            <ul>
                @if (Model.SitemapEnabled)
                {
                    <li><a href="@Url.RouteUrl("Sitemap")">@T("Sitemap")</a></li>
                }
                <li><a href="@Url.RouteUrl("Topic", new {SeName = Html.GetTopicSeName("shippinginfo") })">@T("ShippingReturns")</a></li>
                <li><a href="@Url.RouteUrl("Topic", new {SeName = Html.GetTopicSeName("privacyinfo") })">@T("PrivacyNotice")</a></li>
                <li><a href="@Url.RouteUrl("Topic", new {SeName = Html.GetTopicSeName("conditionsofuse") })">@T("ConditionsOfUse")</a></li>
                <li><a href="@Url.RouteUrl("Topic", new {SeName = Html.GetTopicSeName("aboutus") })">@T("AboutUs")</a></li>
                <li><a href="@Url.RouteUrl("ContactUs")">@T("ContactUs")</a></li>
                <li><a href="#">Custom Link 1</a></li>
            </ul>
        </div>


You can follow the same process for each sub-div block to add your custom links or remove any existing link in order to personalize your store site footer block.

Here is the result:

nopcommerce footer

About Author

Written By Lavish Kumar

Based out of New York, USA, Lavish Kumar is a full stack web developer by profession and founder of Striving Programmers, a trusted community for developers that offers a wealth of articles and forums to assist individuals with improving their software development skills.

Leave your comment
Comments
5/26/2016 9:42 PM
Hi, Thanks for the info above,  but would you know how I could add a full list of links to my products here?
6/15/2016 12:09 PM
How many products you have on your store site? Adding a long list of products will make your footer way too big. You might want to consider adding categories instead.