By chazz on
Hello,
Sound a bit stupid but I could not find a solution for my issue... I would like to get a rig of "Comments" header. I don't know which file I need to modify, I can't see nothing related in comment.tpl.php or node.tpl.php. Can anyone help me please?
Thank you
Comments
HIde with CSS
You could hide the "Comments" header using CSS
#comments h2.comments {display:none} or #comments h2.comments {text-indent: -9999px;}
I don't suggest modifying any files.
D
Thank you for your
Thank you for your suggestion, tried both codes but none of them work... I've edited acquia-prosper-style.css file in my theme folder, what can be wrong in this case? Thank you
Ok I found correct code:
Ok I found correct code: #comments h2.comments-header {
Thank you!
Try this
#comments h2.title {display:none} or #comments h2.title {text-indent:-9999px}
It's best practice to build a sub theme rather than modify a theme. Here's an article that explains how to sub theme. http://drupal.org/node/441088
D
Cool! you got it!
Cool! you got it!
I've been working to remove
I've been working to remove "Comments" header in Garland theme on Drupal 6.20, and I've seen
instead of
tag. This info may be useful if you're trying to do the same now
String overrides
It took me ages to try and get the css to work as described here, but I just couldn't do it. In the end, I got rid of the header by using the String Overrides module: http://drupal.org/project/stringoverrides
I noticed that the header is a string in the comment-wrapper.tpl.php file, but since I know NOTHING about php, I didn't even want to begin fiddling here. Using String Overrides I just typed in the string I wanted to change ("Comments") under 'original', and 'replacement' I left blank.
If this is a bad idea (i.e. if it messes other things up), please let me know! Luckily my site is hosted locally and I'm just using it to play and learn (for now).
(PS, I used Drupal 6 and String Overrides 1.8)
Maybe I'm confused, but the
Maybe I'm confused, but the comment-header along with h2 "comments" is called in the advanced forum module not in comment-wrapper.tpl.php