Forum Replies Created
-
AuthorPosts
-
EscendrixMember
If the code is there, then why are they not showing up? There is a comment at the very bottom by "Hassan" that is having the same problem as me.
Furthermore, your tutorial and code was specifically for name, email, and website text fields, but I want the class to be added to the comment box as well.
EscendrixMemberMaybe I'm not being more clear, if so I apologize.
As I've said before, I completely understand that I can modify the label to add an asterisk, but that's not what my original question was about. To me, that's more of a "hack".
The reason I opened this topic was to find out why WordPress does not add the .required span to the comment text area, and how I could go about adding it. I don't want to modify the label, I want to add the .required span that are used for the name and email text fields.
I hope I have made myself more clear for you, sorry for any confusion.
EscendrixMemberI actually found this: https://core.trac.wordpress.org/ticket/16206 but I'm not sure if making modifications directly to WordPress would be a good idea and I'm not sure how to go about implementing that through my child theme's functions.php file.
EscendrixMemberI could do that, but I was trying to figure out how to add the .required class instead.
EscendrixMemberNow that I think about it, I guess the bigger question to ask is how to go about changing the default comment form to use a plugin's comment form, such as Ninja Forms, but maybe that should be for another topic. Maybe the long-term solution is to learn PHP and code my own form structure, but that's not an option at this point. I'm trying to get my website up quickly and I've pretty much finished the custom style sheet already. I don't want to delay the development by learning a new language, although I want to at some point.
EscendrixMemberHmm it seems like that tutorial is more about styling the look and text of the comment field; I couldn't find anything about making a field required. I've already styled my forms and made them how I want, I just wanted to add that .required span to the comment text area so that it would have an asterick like my other required text fields. I understand that you can't submit a form without a comment, so it seems very strange that Genesis doesn't add the required class to the comment text area by default.
I could easily change the label to have one by default without using the class, but for learning purposes I want to figure out how to add the actual span class if possible.
I am developing my WordPress site locally with Wamp server so there's no problem there.
EscendrixMemberSorry, I guess I should have been more clear that I don't know PHP at all 😛 , so technically speaking I haven't done anything besides searching on Google to no avail.
EscendrixMemberThanks Brad!
I don't know much about php, but I am intermediate with CSS/ HTML. How would I go about making a field required with your code? I see the line that contains the .required span class but they aren't "active" so to speak.
-
AuthorPosts