How can I add a css class to the li's in the php code below?
<?php wp_list_bookmarks('categorize=0&category=2&before=<span>&after=</span>&show_images=1&show_description=0&orderby=url'); ?>
How can I add a css class to the li's in the php code below?
<?php wp_list_bookmarks('categorize=0&category=2&before=<span>&after=</span>&show_images=1&show_description=0&orderby=url'); ?>
Review http://codex.wordpress.org/Function_Reference/wp_list_bookmarks
There's a class argument.
<?php wp_list_bookmarks('class=MYCUSTOMCLASS&categorize=0&category=2&before=<span>&after=</span>&show_images=1&show_description=0&orderby=url'); ?>
Didn't see that before thanks. But I am not quite sure I understand it.
I want a header (category #2)
then I would like to apply a class to the li elements below:
<div class=myClass>image</div> so it shows up like:
Category Heading
image image image image image image
This topic has been closed to new replies.