Creating div in default page of NOpcommerce store

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 年 前
I want to create div to add image slider to home page of nopcommerce store so any one please help me to create new div below header menu

please help
11 年 前
Most likely if you just want this on the homepage it may be simple just to edit the /Views/Home/Index.cshtml file. In code below I simply inserted a 'HELLO'. You could put your div in the same spot. If you wanted to reuse the code elsewhere you would take a different approach.



@{
    Layout = "~/Views/Shared/_ColumnsTwo.cshtml";
}

@section left
{
    @Html.Partial("Left")
}


@Html.Action("WidgetsByZone", "Widget", new { widgetZone = "home_page_top" })

<div>HELLO</div>

@Html.Action("TopicBlock", "Topic", new { systemName = "HomePageText" })

<div class="clear">
</div>
@Html.Action("HomepageCategories", "Catalog")
<div class="clear">
</div>
@Html.Action("HomepageProducts", "Catalog")
<div class="clear">
</div>
@Html.Action("HomepageBestSellers", "Catalog")
<div class="clear">
</div>
@Html.Action("HomePageNews", "News")
<div class="clear">
</div>
@Html.Action("HomePagePolls", "Poll")
@Html.Action("WidgetsByZone", "Widget", new { widgetZone = "home_page_bottom" })

11 年 前
Yes i have created new div and its working now :)

Thanks
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.