In codex (http://codex.wordpress.org/Function_Reference/comment_form), I see these classes:
`’author’ => ‘<p class=”comment-form-author”>’ .
’email’ => ‘<p class=”comment-form-email”>’ .
‘url’ => ‘<p class=”comment-form-url”>’ .
‘comment_field’ => ‘<p class=”comment-form-comment”>’ .`
I don’t see them in style.css (twentyten). Where do they come from?
Thanks for your reply.
You can add them to the style.css file.
Does not make much sense.
WP uses these classes in core files. For example, see wp-includes>>comment-template.php ( around line#1500).
I think what jrav001 is saying is that you can add these classes to your default stylesheet if you want to manipulate the way they are displaying via CSS.
If you add these srparately to the default style.css, then you see double styling of the form fields – one on top of the other.
That tells me its not necessary to add these to the stylesheet.
Hence my original inquiry: from where and how the commentform is pulling them?
The reason I got into asertaining this info is that I wanted to to apply “focus” pseudo-class to comment form fields (i.e., name,emai,url,textarea).
Thanks to both of you for your time.
A link would be super helpful – I could then pinpoint the stylesheet that references these classes 🙂
I am testing default theme (twentyten) with default stylesheet.
Think I was able tp pinpoint the source in the stylesheet. If someone else is trying to figure out this, looks like the commentform is using this:
border: 1px solid #ccc;
box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
-moz-box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
-webkit-box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
When I apply the “focus” pseudo-class to it, it works fine in FF, but it does not work in IE8.
I am not dev or a programmer, but my understanding is that “focus” should work atleast in IE8.
Any guidance will be appreciated.
Thanks for you patient and time.
- The topic ‘Where these classes are located?’ is closed to new replies.