How can I remove the content title?

CommentFileSizeAuthor
#1 q.JPG12.5 KBYuki

Comments

Yuki’s picture

StatusFileSize
new12.5 KB

Please see the attached screen shot.

Acert93’s picture

Same issue. Thanks for posting this support request.

davemybes’s picture

Use CSS to hide the node title.

Yuki’s picture

Please kindly indicate the css and where to write. Thanks.

3djeff’s picture

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.

rpinkham’s picture

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?

davemybes’s picture

Use the following CSS:

.block-content_slider h2 {display:none}
rpinkham’s picture

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.

davemybes’s picture

If your site is live, send me the link so I can take a look at what the actual code is for the title.

3djeff’s picture

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.

rpinkham’s picture

The new tpl file does the trick! Thanks.

msjones design’s picture

This works too, editing the contentslider.css within the module

.sliderwrapper .contentdiv h2{
display:none;
}