Using tables instead of divs with Connections
-
I have set up a custom template to make each entry contained within a table row, like so:
<tr> <td><?php echo $entry->getTitle() ?></td> <td><?php echo $entry->getDepartment() ?></td> <td>...etc.</td> </tr>
I then manually input the table tag within the WordPress page itself, as well as the table headers. This works great, except Connections generates many empty divs above/around the table, as well as wraps each table row in a div, resulting in malformed markup. I’m pretty sure I will just go in and edit the output class to fix this, but it would be nice if my changes wouldn’t break with updates. I hate tables as much as many people, but it makes more semantic sense to me to mark this up as a table. Any suggestions?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Using tables instead of divs with Connections’ is closed to new replies.