By slandry-2 on
I created a new block called "copy" it contains the copyright information for my site. Here is the current markup:
<div class="content">
<p>Copyright © 2009 My website - All Rights Reserved</p>
</div>
I would like to change the markup to be:
<div class="content">
<p class="copy">Copyright © 2009 My website - All Rights Reserved</p>
</div>
How do you change the rendered HTML output for blocks?
Comments
In this case since you made
In this case since you made the block you should be able to add the class to paragraph.
In general each block has an id of the form block-module-delta (ex: block-user-1) and in many cases that can be used to add css specific to a block.
Which file(s) contains the rendered markup?
Where can I find the markup for the rendered blocks. I'd rather use semantic names for the sections like "copy" rather than block-user-1.
block.tpl.php
block.tpl.php