Closed (fixed)
Project:
Bartik
Version:
7.x-1.0-rc3
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2011 at 05:01 UTC
Updated:
29 Oct 2013 at 14:35 UTC
Jump to comment: Most recent
Comments
Comment #1
nagarajanl commentedHi,
Add this function in your template.php of your theme folder (if the function already exists just replace the few lines)..
function bartik_preprocess_node(&$variables) {
$variables['title'] = NULL; // Hide the node title before the node is getting rendered.
}
for more reference http://api.drupal.org/api/drupal/modules--node--node.module/function/tem...
Comment #2
jensimmons commentedThanks for your interest in Bartik!
You will get a better response for your question by using IRC to chat with people in the Drupal community live, or by posting a question in the forums. In fact, maybe someone has already answered your question there, or maybe in the documentation.
Comment #3
gfurnivall commentedIs there any way to get rid of the title of the node on one type of content (ie basic page) on Drupal 7? I'm no good at PHP but can follow instructions if someone tells me what code I need and where I need to insert it!
Comment #4
fakingfantastic commentedComment #5
Pascal.s commentedEasy!
Just install the automatic node title, create a new content type (i suggest not using the basic page in case you would like to have a title on some pages). Then edit your new node type, go to "Automatic title generation" and select "Automatically generate the title and hide the title field" and that's it!
The inconvenient: if you want to edit your page, you have to go to content or type the clean url in the address bar.
Comment #6
snoopy77 commentedYes, and make same change in function
in order to perform the same op on main content. Thanks !
Comment #7
tanitani commentedSimply use http://drupal.org/project/exclude_node_title. It takes care of it with as granularity as you want.
Comment #8
ajitartist commentedThanks that was a great help using "exclude node title" i was spending ages to remove the title from a view
Comment #9
maedi commentedDon't forget:
http://drupal.org/project/auto_nodetitle
http://drupal.org/project/auto_entitylabel
Comment #10
manorius commentedIt should be page instead of node.
Node is not working for me, but page does.
Comment #11
gramie commentedRather than set $variables['title'] = NULL, you can set $variables['title_hidden'] = TRUE. It certainly worked for me.
Some themes, like Omega, also have a setting where you can just click a checkbox to hide titles.
Comment #12
r_sharma08 commentedHello Drupal Developers,
Is there any way to remove page title of a single page in drupal7.
I want to change page title "Search" in search Results.
Thanking you in advance
Rajnish
Comment #13
DeepRed_99 commented#7 worked for me!
tried #5 first, but got A LOT of problems, that eventualy couldn`t resolve.
thank you
Comment #14
fonea commentedHi,
You can hide title like this:
- in
HOOK_form_alter(&$form, &$form_state, $form_id) {
~~~~~~
$form['title']['#type'] = 'hidden';
~~~~~~
}
and now it is a hidden field.
thanks
Comment #15
batigolixSee also http://drupal.org/node/1352914
Comment #16
Dave Hirschman commentedI just wanted a cheap and simple solution to prevent the title and breadcrumb from being displayed on one or two nodes, so I added an implementation of hook_node_view_alter to my custom module,
cleared cache, and set the node titles to 'NO TITLE'.
Comment #17
sumaiyajaved commentedThere is a module for this https://drupal.org/project/vscc
Comment #18
ferenju commentedTo disable the basic page title, you have to write a simple CSS style on the body part of your BASIC PAGE and make sure you change the area to FULL HTML mode.
Here is the code that disable the title of a page, only for the page that you placed this code.
You may have a different page title ID, so make sure you change #page-title to your page title id.
This is very help full when you use a BASIC PAGE as your FRONT page.
Hope this help some one.
AD
Comment #19
beastb9 commented.node-title {dispaly :none;} in your style.css