-
Author
-
August 29, 2014 at 03:56 #27078Jeremy14Participant
Hello hope all is well,
I am trying to fix my comments under my news (post) page. I’ve attached a screenshot. It says that comments are required and instead of “Post Comment” it says “Send Message”. Thank you
Attachments:
You must be logged in to view attached files.September 4, 2014 at 19:15 #27617CatalinModeratorHello,
Please send me a link to your website.
Thank you,
CatalinHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 5, 2014 at 11:12 #27684CatalinModeratorHello,
Please add this code in your functions.php filde from your child theme:
COPY CODEfunction kleo_comment_changes($arg) { $arg['label_submit'] = __( 'Post Comment', 'kleo_framework' ); $arg['comment_notes_before'] = ''; $arg['comment_notes_after'] = ''; $arg['comment_field'] = '<div class="row"><div class="twelve columns"><label for="comment">' . _x( 'Comment', 'noun', 'kleo_framework' ) . ' ('.__("required", 'kleo_framework').')</label><textarea id="comment" name="comment" cols="45" rows="8" required aria-required="true"></textarea></div></div>'; return $arg; }
Let me know if this works.
Thank you,
CatalinHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 9, 2014 at 02:21 #28073Jeremy14ParticipantSorry for the lag. The code worked for the comment button. But it is still saying that comments are required.
September 9, 2014 at 11:17 #28088CatalinModeratorreplace the code I provided with this:
COPY CODEfunction kleo_comment_changes($arg) { $arg['label_submit'] = __( 'Post Comment', 'kleo_framework' ); $arg['comment_notes_before'] = ''; $arg['comment_notes_after'] = ''; $arg['comment_field'] = '<div class="row"><div class="twelve columns"><label for="comment">' . _x( 'Comment', 'noun', 'kleo_framework' )</label><textarea id="comment" name="comment" cols="45" rows="8" required aria-required="true"></textarea></div></div>'; return $arg; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 16, 2014 at 17:04 #28759CatalinModeratorHello Jeremy,
Please compaire your code with the original function:
COPY CODEfunction kleo_comment_changes($arg) { $arg['label_submit'] = __( 'Send Message', 'kleo_framework' ); $arg['comment_notes_before'] = ''; $arg['comment_notes_after'] = ''; $arg['comment_field'] = '<div class="row"><div class="twelve columns"><label for="comment">' . _x( 'Comment', 'noun', 'kleo_framework' ) . ' ('.__("required", 'kleo_framework').')</label><textarea id="comment" name="comment" cols="45" rows="8" required aria-required="true"></textarea></div></div>'; return $arg; }
take a look at syntax and punctuation. I tested the code on my server and it works.
Thank you,
CatalinHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.