Comments template questions
-
Hi,
I’m about to add a comment form on my website and I’m using this site https://developer.www.ads-software.com/themes/template-files-section/partial-and-miscellaneous-template-files/comment-template/ and https://developer.www.ads-software.com/reference/functions/comment_form/ but I’m having some questions regarding what can or can’t be done.
Comments timestamp :
- Is it possible to make it unclickable?
- Can I change the format to something like “2 days ago” instead of “May 31st, 2021 at 13h43” or just show the date without the hours?
Labels/Buttons
- Is it possible to put placeholder instead of using labels?
- Is it possible to change the position of the reply or edit button? I would like to have my edit button on the right side instead of next to the time/date.
Finally, is it possible to remove the <span class=”says”>say :</span> without having the just hide it with CSS?
I also have a problems where I can’t use this properly:
comment_form( array( 'logged_in_as' => null, 'title_reply' => esc_html_e( 'Laisser un commentaire', 'aurora' ), 'title_reply_before' => '<h5>', 'title_reply_after' => '</h5>', 'class_submit' => 'btn btn-dark', 'format' => 'html5', 'label_submit' => 'Publier le commentaire', ) );
https://i.postimg.cc/ZqJd484L/comment.png
For whatever reason, if I decide to use _e(‘Publier le commentaire’) for the label_submit, it doesn’t work. I know that _e is used for translation. However, it doesn’t work for the submit label. The title reply part doesn’t seem to take the _before and _after h5. It just put the title_reply outside on it’s own…
Thank you in advance.
- The topic ‘Comments template questions’ is closed to new replies.