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

Yuki - July 1, 2009 - 06:12

Please see the attached screen shot.

AttachmentSize
q.JPG 12.5 KB

#2

Acert93 - August 12, 2009 - 14:23

Same issue. Thanks for posting this support request.

#3

incrn8 - August 29, 2009 - 06:08

Use CSS to hide the node title.

#4

Yuki - August 29, 2009 - 08:13

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

#5

3djeff - September 22, 2009 - 06:17

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

rpinkham - October 19, 2009 - 23:42

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

incrn8 - October 20, 2009 - 00:54

Use the following CSS:

.block-content_slider h2 {display:none}

#8

rpinkham - November 4, 2009 - 14:09

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

incrn8 - November 5, 2009 - 11:52

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

3djeff - November 5, 2009 - 16:35

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

rpinkham - November 5, 2009 - 19:21

The new tpl file does the trick! Thanks.

 
 

Drupal is a registered trademark of Dries Buytaert.