How can I remove the content title?
Yuki - June 29, 2009 - 13:37
| Project: | Featured Content Slider |
| Version: | 6.x-1.1 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
How can I remove the content title?

#1
Please see the attached screen shot.
#2
Same issue. Thanks for posting this support request.
#3
Use CSS to hide the node title.
#4
Please kindly indicate the css and where to write. Thanks.
#5
I created a new node-content-type.tpl.php, put it in my themes directory and then commented out the following line:
<?php if ($page == 0): ?><h2><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h2>
<?php endif; ?>
It will remove the title when viewing the node in the slider as a teaser, but will show up when view the full node.
#6
I commented out the line above (post #5) in node.tpl.php in the WhiteJazz theme (Drupal 6.13). This removed the content titles in the slideshow, but had the unintended effect of removing other titles of pages and stories which had been promoted to my front page.
Does anyone know how to remove just the node titles in the node type used in the content slider (e.g. featured), and not the titles in all node types on the front page?
#7
Use the following CSS:
.block-content_slider h2 {display:none}#8
Thank you for the help. As simple as the solution above seems, after a number of tries, I have not been able to successfully implement it.
I have tried the CSS above in contentslider.css and in my theme's CSS file (in conjunction with the Blocktheme module) to no avail.
I can probably can live with the node titles, but if anyone can offer further help, I would appreciate it.
#9
If your site is live, send me the link so I can take a look at what the actual code is for the title.
#10
I created a unique content type for my content slider nodes called 'Featured', then that commented out line only affects those node. The new tpl file is called node-featured.tpl.php and is a copy of node.tpl with the only difference being that commented out line.
#11
The new tpl file does the trick! Thanks.