 so after having a ton of trackbacks in a recent article the 6 most important css techniques you need to know i thought that it was kind of breaking up the flow of the comments i didnt necessarily want to completely remove them because i thought that some people might be interested in them these are the steps that i want to take assign a class to all trackbacks hide them all with css add a jquery visibility toggle 1 assign a class to all trackbacks in your comments php theme file find a line that looks like this li id= comment php comment id and replace it with this li class= php if get comment type = comment echo trackback id= comment php comment id explanation the get comment type function returns either comment trackback or pingback since i want to hide everything except comments i filter out anything that does not equal comment so i assign a class of trackback to that list item 2 hide them all with css ok easy enough just add the following to your stylesheet ol commentlist li trackback display none that should be pretty self explanatory 3 add a jquery visibility toggle the logic of the javascript will be as follows check to see if there are any list items with a class of trackback add a link to show hide trackbacks add a click event to the show hide trackback link update the text of the link accordingly first lets execute the javascript once the document is ready $ document ready function next lets check to see if there are any elements with a class of trackback $ document ready function if $ trackback length 0 next if there are trackbacks on the page insert a link to show trackbacks $ document ready function if $ trackback length 0 $ comments after a href= id= toggletrackbacks show trackbacks a i am adding the show hide trackback link after the heading with an id of comments finally i want to add in the click event to the link and toggle the text depending upon if the trackbacks are visible or not $ document ready function if $ trackback length 0 $ comments after a href= id= toggletrackbacks show trackbacks a $ toggletrackbacks click function $ trackback slidetoggle slow if $ toggletrackbacks text == show trackbacks $ toggletrackbacks text hide trackbacks else $ toggletrackbacks text show trackbacks return false so basically i am adding the jquery slidetoggle effect when the show hide trackbacks link is clicked then if the text in the show hide trackbacks link is show trackbacks i change it to hide trackbacks and the opposite when the text is hide trackbacks i have grabbed some of the comments from the ultimate png guide so you can see a demo of this in action i love how simple jquery is 