By nimzie on
how can i add a class to the image? (eg class="imageclass")
Not the link.
Thanks for your help!
$img = theme( 'imagecache', 'front_page_block', $node->content['field_image']['field']['items'][0]['#item']['filepath'] );
print l($img, $node->field_link[0]['display_url'] , array( 'html' => 'true' , 'attributes' => array('alt' => $node->title, 'title' => $node->title )));
Comments
what theme u are using?
what theme u are using?
my own, but it's a sub of
my own, but it's a sub of zen.
Additional attributes
from your code:
you just need to add attributes:
thanks! i just couldn't
thanks! i just couldn't figure out the d6 syntax again :S ..
cheers,
Adam
In what file is this line of
In what file is this line of code located? Just posted a new topic trying to find out how to add a class to images using ImageCache, this looks like a solution!
Thanks,
Harpo