Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I'm not sure how into themeing you are, but there's a couple ways you can do this:
First, you'll always have to enter in a title..that's just the way it is. But, that title doesn't have to display. There's 2 ways you can keep it from displaying:
1. You can do it via css. The more I think about it, I think this is the best way to go (because it makes your site more search engine friendly). Basically, find the story's class or ID, and do a [display:none] on it's title h2 tag. This is good because the h2 tag (your title) is still in the html, which is good for screenreaders and for search engines (who can still see it)
2. You can also remove it from your story nodes all together by creating a story-node.tpl.php file. In that file, you'd just remove the print $title. You can find out more about how to do this at: http://drupal.org/node/17565
I also have wish to remove the title, and have used the autonodetitle module. Unfortunatly it leaves the div tag still in place....div class="meta"....which in my case has it's own border..theme is sky....Can this be overcome somehow....?
Would appreciate any suggestions on the best way to go about it...
I'ts probably not what you had in mind....I wasn't able to find a way to selectivly not print something.....if there's a neater solution, I'd be interested to hear about it.
Comments
Getting Rid of Titles
I'm not sure how into themeing you are, but there's a couple ways you can do this:
First, you'll always have to enter in a title..that's just the way it is. But, that title doesn't have to display. There's 2 ways you can keep it from displaying:
1. You can do it via css. The more I think about it, I think this is the best way to go (because it makes your site more search engine friendly). Basically, find the story's class or ID, and do a [display:none] on it's title h2 tag. This is good because the h2 tag (your title) is still in the html, which is good for screenreaders and for search engines (who can still see it)
2. You can also remove it from your story nodes all together by creating a story-node.tpl.php file. In that file, you'd just remove the print $title. You can find out more about how to do this at: http://drupal.org/node/17565
-Bob Christenson
Owner/Designer, Mustardseed Media, Inc.
MustardseedMedia.com
Subscribing
Subscribing for future reference....
=-=
One can also use the autonodetitle.module which may not have been in existance for Drupal 4.7 but is for Drupal 5.x and Drupal 6.x
How to remove the div tag?
I also have wish to remove the title, and have used the autonodetitle module. Unfortunatly it leaves the div tag still in place....div class="meta"....which in my case has it's own border..theme is sky....Can this be overcome somehow....?
Would appreciate any suggestions on the best way to go about it...
=-=
edit the theme to remove the div.
you can do so with some conditional php as seen in other themes.
if (print div)
else don't print div
Hi VM - Thanks for the
Hi VM
- Thanks for the reply
I don't know PHP coding unfortunatly...still by trial and error and much pulling of hair!....came up with the following:
I'ts probably not what you had in mind....I wasn't able to find a way to selectivly not print something.....if there's a neater solution, I'd be interested to hear about it.
Thanks and Regards