I couldn't see page titles for the Contact page, or Taxonomy term pages, the variable $title was empty (according to region--content.tpl.php).

I put this code at the top of region--content.tpl.php and the problem seems to go away:

  if(!$title) $title=drupal_get_title();

I know this isn't the correct behaviour or the best place to fix the problem, but it works for my purposes.

Any chance I'm NOT imagining this ... any chance of a real fix?

Comments

himerus’s picture

Interesting.... I'm not sure where/what caused this... I am seeing it though in my dev environment (when checking the contact page)

I'll look into this one and get it fixed up.

himerus’s picture

Assigned: Unassigned » himerus
Priority: Normal » Major

It appears this is only happening on system pages (contact, my account, etc.)
Upping the priority a bit, and I'll work to have this resolved today. I'm planning the Beta4 release following the conclusion of the Git migration today.

himerus’s picture

Status: Active » Fixed

Fixed in stable 2.0 release.

matt_harrold’s picture

Awesome Sir. Many thanks for such a prompt fix.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

RmrJmrGrl’s picture

Was this fixed for article pages as well? I'm on 7x.2.1 release and have no titles on my article pages.

ex -- http://drupal7test.cahabamedia.com/?q=article/bakken-shale

If so, how do you upgrade your sub-theme to use the beta version of Omega?

zeta1600’s picture

Version: 7.x-2.0-beta3 » 7.x-3.0-rc2

I am having this same issue. My page, posts, product titles are not showing up. I am not able to find drupal_get_title() on any files in 3.0.

When I change the theme to Bartik, the titles show up just fine. Please help.

ethant’s picture

Having similar problem with same version, the difference being title only shows on front page, and system tabs are missing. I checked to make sure I have them enabled in the theme settings, and I do.

technikh’s picture

Version: 7.x-3.0-rc2 » 7.x-3.0

having same issue as #8
Title shows up on front page but not on other pages. also tabs are missing

mspano’s picture

Having same issue as #7. When I change the theme to Bartik, the titles show up just fine.

Edited
solved in my case.
I copied node.tpl.php from "omega/omega/templates" to "my-custom-theme-omega-based" and added
<?php print $title; ?> berfore <?php if (!$page && $title): ?>

the end result was:

<article<?php print $attributes; ?>>
  <?php print $user_picture; ?>
  <?php print render($title_prefix); ?>
  <h2><?php print $title; ?></h2> // here my code
    <?php if (!$page && $title): ?>
  <header>

correcting: the above solution does not work on pages generated by Views

allentian’s picture

thanks, mspano.
I encounter the same issue. And with your solution, I fix it.