How can I add a class to the function so I can style the output tags as boxes in css?
<?php
if(get_the_tag_list()) {
echo get_the_tag_list('<ul><li>','</li><li>','</li></ul>');
}
?>
How can I add a class to the function so I can style the output tags as boxes in css?
<?php
if(get_the_tag_list()) {
echo get_the_tag_list('<ul><li>','</li><li>','</li></ul>');
}
?>
Comments are closed.
If you are passing the
before
parameter that you can simply add any class that you want. You then style that class instyle.css
.