Close

Category Description Position Question

JayC
9 years ago
#10292 Quote
Avatar
  • 14
Hello,

Quick question. Right now this is what our categories look like ddicp.dev.stepsmarketing.com/cold-sterilization-solution. The description text is above the products.

How can I change the position of the text so that the description shows up below the products? Is there a simple css/code change I can make to make it appear more like our current website www.infectioncontrolproducts.com/category/245/cold-sterilization-solution.aspx?

Thanks
Peter.Zhekov
9 years ago
#10296 Quote
Avatar
  • Moderator
  • 104
Hi JayC,

The easiest way to do this is to change the file 'Themes\Motion\Views\Catalog\CategoryTemplate.ProductsInGridOrLines.cshtml'. Find the code below and paste it in the bottom of the file:

@*description*@
@if (!String.IsNullOrWhiteSpace(Model.Description))
  {
    <div class="category-description">
      @Html.Raw(Model.Description)
    </div>
  }


Make sure you place it right after the 'pager' element in the markup:

@if (!pager.IsEmpty())
  {
    <div class="pager">
      @pager
    </div>
  }
/*category description goes here*/





Regards,
Peter Zhekov
Nop-Templates.com
JayC
9 years ago
#10300 Quote
Avatar
  • 14
Great! Thanks for the quick response!