By n00b0101 on
Right now, the html for my unformatted view looks like this:
<div class="views-row views-row-1 views-row-odd views-row-first row">
<div class="views-field-title">
<span class="field-content"><a href="/content/nam-et-semper-dui" title="Nam et semper dui." alt="Nam et semper dui.">Nam et semper dui.</a></span>
</div>
<div class="views-field-created">
<span class="field-content">Sep 17</span>
</div>
<div class="views-field-body">
<div class="field-content"><p>Aliquam nunc neque, condimentum quis mollis quis, posuere sed odio. </p></div>
</div>
</div>
</div>
I'm trying to create this:
<div class="views-field-created">Sep 17</div>
<div class="someclass">
<div class="views-field-title"><a href="/content/nam-et-semper-dui" title="Nam et semper dui." alt="Nam et semper dui.">Nam et semper dui.</a> </div>
<div class="views-field-body"><div class="field-content"><p>Aliquam nunc neque, condimentum quis mollis quis, posuere sed odio. </p></div></div>
</div>
I've messed around with a table and grid layout, but still haven't been able to get those two fields into a div on its own...
Comments
Theme your view. Use the
Theme your view. Use the Theme: Information link in your view settings to find the template currently responsible for your output.
Copy that view template into your current theme directory
Clear your site's cache
Open the theme template copy that you just placed in your theme directory and modify it accordingly.