I am trying to remove a node title on a specific content type (Core Article) using its template file.
I don't want to use preprocess_node() hook that it's pretty straight forward but not of my liking due to I want to organize all my edited templates in my custom template folder.
What I did is this: I copied the node.tpl.php to my template folder under the folder "templates". I renamed that file to node--article.tpl.php. I edited the template file removing all the header section (which includes the title render function). Cleared the caches but the title is still there.
What am I doing wrong?
EDIT: Here is the code in my node--article.tpl.php
<article id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>> <?php // Hide comments, tags, and links now so that we can render them later. hide($content['comments']); hide($content['links']); hide($content['field_tags']); print render($content); ?> <?php if (!empty($content['field_tags']) || !empty($content['links'])): ?> <footer> <?php print render($content['field_tags']); ?> <?php print render($content['links']); ?> </footer> <?php endif; ?> <?php print render($content['comments']); ?>
PS: Sorry for the code styling but I guess html5 tags are breaking the lines in stack exchange editor.