Timeline for Remove/hide title/subject from published comments
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 4, 2013 at 10:41 | vote | accept | therobyouknow | ||
Jul 4, 2013 at 10:41 | comment | added | therobyouknow |
+1 accepted. I copied the comment.tpl.php file and placed it in my own theme and removed title markup: <?php print render($title_prefix); ?> <h3<?php print $title_attributes; ?>><?php print $title ?></h3> <?php print render($title_suffix); ?> this template already gives the opportunity to re-arrange other fields. Thanks. Later I'd like to move this to my own custom module so that this is not theme dependent. I believe this is also possible but requires knowledge of the theme registry.
|
|
Jul 4, 2013 at 9:26 | comment | added | 4life | you could try removing it in your template.php file in the yourtheme_preprocess_comment() function | |
Jul 4, 2013 at 9:25 | history | edited | 4life | CC BY-SA 3.0 |
deleted 1 characters in body
|
Jul 4, 2013 at 9:17 | history | edited | 4life | CC BY-SA 3.0 |
added 116 characters in body
|
Jul 4, 2013 at 9:12 | comment | added | therobyouknow | Thanks, that's the kind of approach I'm looking for. Additionally I'd also be looking to pinpoint hook functions so that I can include them in my own module so that this functionality prevails across any theme. Maybe (but much later perhaps) even contrib the module to drupal.org if I can develop a config UI. | |
Jul 4, 2013 at 9:07 | history | answered | 4life | CC BY-SA 3.0 |