I have two views in a Drupal page with the following structure:
<div>
<div>Some content</div>
<div> View 1 </div>
<div> View 2 </div>
</div>
Now I want a wrapper div covering the two views:
<div>
<div>Some content</div>
<div class="wrapper">
<div> View 1 </div>
<div> View 2 </div>
</div>
</div>
What is the best and easiest way to do this?
A cleaner way would be to use the
views_embed_viewfunction to get the output from the two views, which you then wrap in a div.Where to put this code and how to do it, would depend on how you are doing things now. You could create a block for it and gain the flexibility of blocks.