How to override the H1 element from module? I am trying to override the h1 element on a node view for a content type. I do not want to change the meta tags or anything else. Any tips how I could achieve this?

I have been trying something like this, but it has no effect

function xxx_preprocess_node(&amp;$vars) {
    dpm($vars);
    if ($vars["type"] == 'mycontenttype') {
        $custom_title = $vars["title"] . " TESTING";
        $vars['title'] = $custom_title;
        dpm($vars);
    }
}
This is the sample code that will overwrite the title page of Drupal, you have to locate within the template.php file of the active theme Drupal website.

function YOUR_THEME_NAME_preprocess_page(&amp;$vars) {
  $node = menu_get_object();
  if (isset($node-&gt;nid) &amp;&amp; $node-&gt;type == 'your-content-type-name') {
    $custom_title= "My custom title on node: ". $node-&gt;title;
    $vars['title'] = $custom_title;
  }
}