Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By PipSqueak on
I set a node as the front page, but drupal shows the title twice on the front page. How do I get rid of the title with link? Even better.. how do I remove both titles?
Comments
I removed
I removed this:
It only removed the header, but not the linked title of the node. Can anyone help please?
you could always add the
you could always add the below code to your page.tpl in your theme template:
Where do I put the code?
Where do I put the code? with or without the codes I just removed? I want to remove all the titles of the node.
replace <?php print $breadc
replace
with
This code should go into your theme file called page.tpl.php, generally the location would be /drupal/themes/{your_theme}/page.tpl.php
I'm using multiflex theme.
I'm using multiflex theme. The link still doesn't go away after replacing that code.
can you post a bit more of
can you post a bit more of your code buddy and indicate what file that code is in?
Here's the whole code from
Here's the whole code from page.tpl.php:
When the node appears on the front page, there are two titles... one is text, the other is linked to the node itself. I managed to remove the text one, but the linked title won't go away.
Thanks for the code, on a
Thanks for the code, on a quick glance it appears to be all there. any chance you can post the URL? since I am a "n00b" to drupal myself, the more ammo the better chance I have of being able to help you
It's
It's weightlossfatbinder.com
Thanks very much.
ok mate, just checked your
ok mate, just checked your link. I just see:
"Weight Loss Fat Binder.com - Your Ultimate Resource for Weight Loss Products"
which part of that did you wanna trim? I didnt see no repeats..
Hi, I wanna take away the
Hi, I wanna take away the link. Notice that the "weight loss......... " is a link, I don't want it to link to the node. I'd rather just remove the title completely. Thanks
I think what you are looking
I think what you are looking for will be in the file 'node-tpl.php' in your template folder and will be a line something like
although i'm not sure why you would want to do that. The site currently looks like you are using this post as the mission statement? if so, go to admin -> settings -> general and set it in there instead (using html markup) and leave nodes alone to do the job they are supposed to do.... but anyway, the above should help you with your current problem...
front_page.module
If you need to do so only in the frontpage i would suggest you frontpage.module
http://drupal.org/project/front
Hope it helps
I downloaded this module,
I downloaded this module, but there's no option to remove linked title. The reason why I want to do this is that the full article is already shown on the page, why link to it again?
the same thing with Multiflex
I'd like to use Multiflex, too, but all the node titles show up twice - once as a header with coloured background, then again as a link to the node itself, which is quite useless, since the node is already there. How can I just remove the link without removing the header?
Besides, is there some good documentation for Multiflex available, maybe even with some tutorials? I haven't found anything so far, just an example site...
http://finckendorff.dyndns.org/misc_media/som-site.png - this is what the site looks like with the Multiflex theme, I've switched back to NiftyDrupal now, because I can't use Multiflex the way it looks now. I want the coloured headers, but not the duplicate linked headers.
Looks like it's not just me
Looks like it's not just me who's having a problem with double titles, can anyone help please?
I'm also trying to figure
I'm also trying to figure out how to make the content area and blocks white. There are too many colours.
I found a fix!
I'm using a heavily modified version of Multiflex, and the double titles thing was driving me crazy too.
Until I tried opening up the node.tpl file from another theme for comparison, and saw this:
<?php if ($page == 0) { ?><h2 class="title"><a href="<?php print $node_url?>"><?php print $title?></a></h2><?php }; ?>
So I thought, Aha! And altered my node.tpl file as follows:
With that in place, node titles only show up on multi-node pages.
You will also note another difference between what I just posted and the default Multiflex node.tpl file: I had earlier removed the link tags around the title. If having all the titles show up pale grey and underlined annoys you as much as me, it's just a matter of taking away the "a href..." tag that surrounds the title. People can click on the "Read More" link if you're using teasers, and if you're not, then they're already seeing the full node and clicking on the title wouldn't get them anywhere anyway, so I figured the linked titles were kind of useless.
Lynna
Business: http://www.spidersilk.net
Personal: http://www.wildideas.net
this worked for me, too
a variation on spidersilk's fix worked for me, too. :)
in node.tpl.php (theme based on garland), i changed this:
to this:
It should work with
I didn't read this whole thread, but getting rid of a title (or setting a title, for that matter) should work with drupal_set_title to nothing:
Ludo
i need to remove the page title on the header
i wanted to remove the Welcome:
please visit this site: www.wilsonng.net/balikmandaue... im using Bluesquare template.
this is the complete code. please help me remove the page title on the header. thanks.
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
body {behavior:url("print $language->language " lang="
print $language->language
" dir="print $language->dir
">print $head_title
print $head
print $base_path . $directory
/csshover.htc");}print $styles
print $base_path . $directory /ie7.css" />
print $scripts
print $body_classes
if($left_bar && !$right_bar){ echo ' leftbar_only';} elseif(!$left_bar && $right_bar){ echo ' rightbar_only';} elseif($left_bar && $right_bar){ echo ' twobars';} elseif(!$left_bar && !$right_bar){ echo ' nobars';};
">print $header_banner
if($logo):
print $frontpage "> print $logo " />endif
if($site_name):
print $site_name
endif
if($site_slogan):
print $site_slogan
endif
if($header_banner){ echo '<div class="clean_float"></div>';};
print $additional_header
print $breadcrumb;
if ($show_messages && $messages): print $messages; endif;
if ($mission): print '<div id="mission">'. $mission .'</div>'; endif;
print $top_content
print $help;
if ($tabs): print '<div id="tabs-wrapper" class="clear-block">'; endif;
if ($tabs): print '<ul class="tabs primary">'. $tabs .'</ul></div>'; endif;
if ($tabs2): print '<ul class="tabs secondary">'. $tabs2 .'</ul>'; endif;
if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif;
print $content
print $bottom_content
print $left_bar
if($search_box):
print $search_box
endif
print $right_bar
print $footer
print $footer_message
print $closure
The module Panels is a good
The module Panels is a good way to remove titles, without changing the theme code itself. Then you can control which content types should have titles and which shouldn't have titles.