Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When viewing the full node, the comment icon appears when it shouldn't as it's accompanied without text. The way to fix it is to attach the icon to the comment link.
.comment_comments {
padding: 3px 0 5px 21px;
background: url(images/comment.jpg) no-repeat left center;
}
Right?? Or am I missing something obvious?
Comments
Comment #1
hswong3i CreditAttribution: hswong3i commentedSorry that I have no idea about your problem:
First of all, interactive_media don't have CSS tag
.comment_comments
. On the other hand, the comment links is already wrapped with this PHP (please checkcomment.tpl.php
), which means if nothing appear in$links
nodiv
block will be shown:Comment #2
Prodigy CreditAttribution: Prodigy commentedMisunderstanding.
It's probably everyones problem, but it's not a comment issue.
Using this theme, view a node that allows comments and go to the comment page and you will see what I mean.
Pay attention to the .meta .comment links section, the icon will show on the full node page.
Comment #3
Prodigy CreditAttribution: Prodigy commentedSee the link above, look where it says "Roots Blog", the comment icon appears next to it.
Comment #4
hswong3i CreditAttribution: hswong3i commentedRefer to comment.tpl.php (yes, this page is for D6; well, both D5/6 share the same idea), which means that
$links
is NOT only related to comment, but also other information. :So yes, the CSS is called as
.meta .commentslink
and image is called ascomments.png
; No, this is not a bug but just a naming problem, which is a legacy naming style from K2. That icon just means for "here is some interesting stuff!" but not only target for comment.Comment #5
Prodigy CreditAttribution: Prodigy commentedRight, I understand you could change the icon to whatever you wanted to display "interesting stuff", but I just thought I would chime in. My original suggestion on adding the comment icon as a background image to the .comment. comments add reply (can't remember off hand) does work though.
Anways, thanks very the fast reply and the theme is really looking great. I'll try to help you out in the support section as help is needed. Goodnight!
Comment #6
hswong3i CreditAttribution: hswong3i commentedWell... Man, you win. You trigger my hidden motivation... I hope to do so for a long time ago...
You ask for fancy, so I give something more fancy: I add a lot of icons for meta data, and theme most core hook_link() functions. Please check my site (D5 and D6) for more idea. I am not sure if everyone like this fancy style; BTW, at least it looks great, too ;p
Already commit code to both 5.x-1.x-dev and 6.x-1.x-dev. If you are able to access CVS, check out latest code for the change; or else you may wait for drupal.org project publish system to renew the development snapshot package. Please feel free to comment for other idea :D
Comment #7
Prodigy CreditAttribution: Prodigy commentedThen you fixed it, good work. It looks a lot better, and now the "full node" page .comment links look a lot cleaner.
Off topic, but what was your motivation in giving the .meta a height of 20px, and and line-height of 20px in one of the newer updates?
Comment #8
hswong3i CreditAttribution: hswong3i commentedOoops... This is a bit tricky (http://www.evolt.org/article/Ten_CSS_tricks_you_may_not_know/17/60369/):
This is not only useful for block title and primary link (take contented7 and internet_services as example), but also for meta data so we don't need to handle the margin/padding fancily :D
Comment #9
hswong3i CreditAttribution: hswong3i commentedLayout is now sync update with contented7 and internet_service, too. If no border this issues should mark as fixed.
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.