Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Custom WordPress Theme Issue – NEED HELP Re: Custom WordPress Theme Issue – NEED HELP

#50879

Hey Chris,

The easiest way to style the comments is to add css for the existing comment templates. So, for example, if in your single.php you have the following:

Code:

This allows you to style your comments as follows:

Code:
#comments h3 { }
#comments ol { }
#comments ol li { }
#comments ol li cite { }

The call to the comments_template() function actually looks in your theme’s directory for a file called comments.php. If that file is not found, it will instead include wp-content/themes/default/comments.php. So you can get even more control over the display of comments by copying wp-content/themes/default/comments.php to your theme’s directory and editing it – editing the default comments.php is not recommended for the reasons stated by ikthius.

Hope this was helpful.
Dave