Add button with link to created page

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Hello,

I have created a page I want to insert a button where customers can click and be directed to a link. How do I go about it? I have already created page which shows in main navigation menu.

Thanks.
7 years ago
Hello-

It depends on where you want to locate the button.
For example, if you want to add your new button to the left column, below the category/manufacturer navigation, you'd add it to either the /Views/Shared/_ColumnsTwo.cshtml or the _ColumnsThree.cshtml, depending on your site's layout:

<div class="side-2">
    @if (IsSectionDefined("left"))
    {
        @RenderSection("left")
    }
    else
    {
        @Html.Widget("left_side_column_before")
        @Html.Action("CategoryNavigation", "Catalog", new { currentCategoryId = currentCategoryId, currentProductId = currentProductId })
        @Html.Widget("left_side_column_after_category_navigation")
        @Html.Action("ManufacturerNavigation", "Catalog", new { currentManufacturerId = currentManufacturerId })
<a href="/yourTopicpage"><img src="/content/images/uploaded/yourbuttonimage.png" width="120" height="80" alt="Click here!"></a>
        @Html.Action("VendorNavigation", "Catalog")
        @Html.Action("NewsletterBox", "Newsletter")
        @Html.Widget("left_side_column_after")
    }
</div>


Or maybe you are saying you want to add the button to a topic page?

If so, then you will open the topic page in admin, and in the toolbar of the rich text editor, to the right, choose Tools >> Source Code.
Then just put your html code there:
<a href="/yourTopicpage"><img src="/content/images/uploaded/yourbuttonimage.png" width="120" height="80" alt="Click here!"></a>
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.