How to modify h2 in wp_list_bookmarks() with css
- 0 Comments
While working on some other site, I came to a situation where I needed to apply css to an H2 heading for those bookmarks on the sidebar in a wordpress site. In fact, I need to get this place fixed now, now that I’ve figured this one out..
This one involves editing the bookmark-template.php file found in your functions folder. Look for this function, function wp_list_bookmarks($args = ”) {
There are lines at the top of this function that build the html that’s output to the screen when the list is built. This line, ‘title_before’ => ‘h2 class=”whateveryouclassis”‘, ‘title_after’ => ‘h2′, is the one we are looking for. Just add the class= with your class name and now your heading on your sidebar will be updated.

