Update: After removing fields one by one, I've discovered that the Product reference field caused $title
to be empty.
I have several content types which are displaying both the <title>
and $title
well, but in my "Product Display" content type (of commerce kickstart) I find that the $title
header is missing, although the <title>
tag is there, i.e. the title bar of my browser is displaying the page title correctly. The contents of <title>
and $title
are similar. Excep that <title>
has the site name added to the end of the node title.
I've viewed page source it shows that h1 isn't printed. I've never written any code to hide any h1 tags. I'm using Display suite on that page and I've disabled it on that content type and it didn't help. I am not using Context on that page. Please advise me on how I should proceed, thanks!
Update: Devel->load shows that the title is set correctly, but when I created a template for that node (page--node--42.tpl.php), and tested if it worked by hiding the header and footer, I added this line of code
<h1 class="page--title title" id="page-title"><?php print $title; ?></h1>
but all I got is am empty $title
Update 2: I've inserted a block using [current-page:title] and it works, however I'd prefer not to stick with this duct-tape solution if possible