Pregunta

I have a Webform with various fields. At the time of display, title of the webform also displayed. I want to avoid that title. Is it possible to hide the title? Please help me...

This is the webform I created. I want to hide the title 'Contact Form'

enter image description here

¿Fue útil?

Solución

If the title is coming from the node title then you can use http://drupal.org/project/auto_nodetitle module to disable the page title.

You can find the settings under the content type settings. Do not that the settings you apply will be content type level. So titles of all the content for the particular content type will be hidden.

Otros consejos

If you are using webform (D7), then you can hide title of webform (e.g. Contact Form) by going to Block -> Configure the Block -> type <none> in "block title" text box and Save it. See the screen shots below: enter image description here

Probably couldn't devise a worse way of doing it but in region--content.tpl.php I changed

<?php print $title; ?>

to

<?php if ($title!="Contact"){ print $title; }?>

.. it does work

My solution to a theme called "myTheme":

In myTheme/template.php add:

function myTheme_form_alter( &$form, &$form_state,$form_id ){
    if (isset($form['#node']->title)){
        $form['#node']->title = false;
    }
}
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top