- 18
Now that I got the Traction theme the way I like it. I'd like to use Nop Templates HTML Widget to add some additional HTML-specific content.
Specifically along the right side of the homepage; just like the HTML Widget's example site. However, I notice that Traction seems to have the 'right_side_column_before' and 'right_side_column_after' disabled.
If I switch to 'Default Clean' theme then the HTML code appears. Switch it to Traction and it disappears. So I know I have the right zones.
I would very much like to use the space on either side of the HomePageText box all the way down to the Footer.
I've begun to modify the '_ColumnsOneHome.cshtml' and now have the Right and Left side zones active, but they both appear either above the HomePageText or above the Footer.
Obviously, this is because the Home page is set to use only one column. Whereas, the 'Default Clean' is set to use three columns.
And, as expected, if you point the Traction theme to use the triple column everything gets misaligned.
---
So, where does one begin modifying the CSHTML to support widget zones on either side of the currently single column.
Code so far:
Specifically along the right side of the homepage; just like the HTML Widget's example site. However, I notice that Traction seems to have the 'right_side_column_before' and 'right_side_column_after' disabled.
If I switch to 'Default Clean' theme then the HTML code appears. Switch it to Traction and it disappears. So I know I have the right zones.
I would very much like to use the space on either side of the HomePageText box all the way down to the Footer.
I've begun to modify the '_ColumnsOneHome.cshtml' and now have the Right and Left side zones active, but they both appear either above the HomePageText or above the Footer.
Obviously, this is because the Home page is set to use only one column. Whereas, the 'Default Clean' is set to use three columns.
And, as expected, if you point the Traction theme to use the triple column everything gets misaligned.
---
So, where does one begin modifying the CSHTML to support widget zones on either side of the currently single column.
Code so far:
@{
Layout = "~/Views/Shared/_Root.cshtml";
}
@section HomePage
{
}
<div class="center-1">
@Html.Widget("main_column_before")
@RenderBody()
@Html.Widget("main_column_after")
</div>
<div class="leftside-3">
@if (IsSectionDefined("left"))
{
@RenderSection("left")
}
else
{
@Html.Widget("left_side_column_before")
@Html.Widget("left_side_column_after")
}
</div>
<div class="rightside-3">
@if (IsSectionDefined("right"))
{
@RenderSection("right")
}
else
{
@Html.Widget("right_side_column_before")
@Html.Widget("right_side_column_after")
}
</div>