Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Comments, trackbacks & pings (http://forum.bytesforall.com/forumdisplay.php?f=19)
-   -   [SOLVED] How to remove comment date link only (http://forum.bytesforall.com/showthread.php?t=12409)

sober Jan 23, 2011 06:22 AM

[SOLVED] How to remove comment date link only
 
I want to remove the comment date link only and want to keep the reply link intact. I have used the
Code:

div.comment-meta a:link, div.comment-meta a:visited, div.comment-meta a:active, div.comment-meta a:hover {display: none;}
but that removes the "reply" link also. When i see the code with firebug that there is a class "commentdate", but I don't know how to apply it. Any help will be appreciated.

lmilesw Jan 23, 2011 06:58 AM

How about
HTML Code:

.comment-meta {
display: none;
}

OR
HTML Code:

.commentmetadata {
display: none;
}


sober Jan 25, 2011 09:24 AM

Thanks for the code. I am sorry for the late reply. I was a bit busy and hence haven't tested this code yet. I will post what turns out in the coming days. Thanks again for the code.

in10 Feb 14, 2011 04:50 PM

I was actually just about to ask this same question until I saw this thread.

lmilesw, I tried both of your recommendations and while they do remove the date, they also remove the reply/edit links too. I could live without the edit link, but I need the reply link to stay.

Any other ideas?

Thanks in advance.

juggledad Feb 14, 2011 05:27 PM

if you don't minl getting rid of the date you can add this to the CSS Inserts
HTML Code:

.comment-meta a {display:none;}
.comment-meta span a {display: inline;}

If you want the date, but not the link, then you need to edit bfa_custom_comments and find this code (line 22-23 in version 3.6.4
HTML Code:

                <a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>">
                <?php printf(__('%1$s at %2$s','atahualpa'), get_comment_date(),  get_comment_time()) ?></a>

and change it to
HTML Code:

                <?php printf(__('%1$s at %2$s','atahualpa'), get_comment_date(),  get_comment_time()) ?>

in10 Feb 14, 2011 05:41 PM

Bingo! The first option worked perfectly. Thanks!

Quick follow up question, how do I remove that little dot that's in front of the "Reply" text link under each commenter's name?

juggledad Feb 14, 2011 06:18 PM

see ato->Style & configure COMMENTS->Comment Reply link text

in10 Feb 14, 2011 07:20 PM

Thanks again!


All times are GMT -6. The time now is 08:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.