i need to wrap the nodes teaser in a div for my taxonomy term page but cant figure out how.

this is my page , this is a list of nodes for the products taxonomy term, using node--product.tpl.php i warped the individual node in <div class="col-md-4 col-sm-6 col-xs-12"></div> but now i need to wrap the list of nodes in <div class='row'></div> and just for the products taxonomy term page listing ...

how can i do this ???

1 Answer 1


One option you have is to override page.tpl.php and wrap the "content" render:

      <div class="row">
        <?php print render($page['content']); ?>  

This will encapsulate your whole taxonomy-term.tpl.php, where your node list is.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.