-
AuthorPosts
-
February 26, 2018 at 9:53 pm #918052
Hi there,
i am using the ALB comment field on a page for using like a guestbook. I have two questions:i’d like to disable the date when the comment was posted. i could do it with the author (quick css: .comment_author_name {display: none;})
wich works fine, but i can’t figure out the selector for the date. .commentmetadata {display: none;} does not work.i’d like to have the field where the guests can put in their comments above the comments, so that they don’t have to scroll all the way down to leave their message.
thank you in advance
KatharinaFebruary 27, 2018 at 6:22 am #918197Hey KaJoHa,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaFebruary 27, 2018 at 8:37 am #918270Hi,
sorry, i forgot. Link in private contentFebruary 27, 2018 at 10:16 am #918316Hi,
You can use this css code to hide the date:
.comment-meta.commentmetadata { display: none; }
As for the comments form, copy comments.php of the Enfold theme and paste it on your child theme, cut this code ( line 156-177 ):
/* Last but not least the comment_form() wordpress function * renders the comment form as defined by wordpress itself * if you want to modify the submission form check the documentation here: * http://codex.wordpress.org/Function_Reference/comment_form */ if(comments_open()){ echo "<div class='comment_container'>"; echo "<h3 class='miniheading'>".__('Leave a Reply','avia_framework')."</h3>"; echo "<span class='minitext'>".__('Want to join the discussion?','avia_framework')." <br/>".__('Feel free to contribute!','avia_framework')."</span>"; comment_form(); echo "</div>"; } else if(get_comments_number()) { /* If there are no comments and comments are closed, * let's leave a little note, shall we? */ echo "<h3 class=' commentsclosed'>".__( 'Comments are closed.', 'avia_framework' )."</h3>"; }
And paste it above this code (located in line 45):
if ( get_comments_number() != "0" || comments_open() ) : ?>
Let us know if this helps :)
Best regards,
NikkoFebruary 27, 2018 at 11:26 am #918366Hi,
thanks for you fast reply! I feel stubid, but i had a “brainwave” and set in the “discussion” settings to only show the last 4 comments, not 20 as it is preset. It looks good now – if the client still wants the comments form above, i’ll try your solution and let you know.Reguarding the css: i already tried this code aswell, but it still doesn’t work. Not even with the !important rule.
best regards
February 27, 2018 at 12:28 pm #918388Hi,
It’s not reflecting on your site, I can see this code which is causing the issue:
*/Kommentare*// .comment-meta.commentmetadata { display: none!important; }
please replace it with:
/*Kommentare*/ .comment-meta.commentmetadata { display: none !important; }
Best regards,
NikkoFebruary 27, 2018 at 12:46 pm #918408ahh – the devil is in the detail :)
thank you!
February 27, 2018 at 1:24 pm #918433Hi,
Lol! XD You’re welcome and glad that we could help. Let us know if you need further assistance :)
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.