However, now all my single article pages have no title at all. The title shows up in in category view, but in article view it simply not there.
The code in the %template_name%/html/com_content/default.php file reads like this:
- Code: Select all
<?php if ($params->get('show_title')) : ?>This is the title
<h1 itemprop="name"
<?php if ($params->get('link_titles') && !empty($this->item->readmore_link)) : ?>
<a href="<?php echo $this->item->readmore_link; ?>" itemprop="url"
<?php echo $this->escape($this->item->title); ?>
</a>
<?php else : ?>
<?php echo $this->escape($this->item->title); ?>
<?php endif; ?>
</h1>
<?php endif; ?>
However, in the page the generated HTML looks like this:
- Code: Select all
<header> <h1 h1="" <="" us="" about="" itemprop="name"> </h1></header>
Obviously, the actual title inside the H1 is missing, I don't even know what to make of this:
<h1 h1="" <="" us="" about="" itemprop="name">
In the older version I started out with (which works by the way) that snippet looks like this:
- Code: Select all
<h1>
<?php if ($params->get('link_titles') && !empty($this->item->readmore_link)) : ?>
<a href="<?php echo $this->item->readmore_link; ?>">
<?php echo $this->escape($this->item->title); ?>
</a>
<?php else : ?>
<?php echo $this->escape($this->item->title); ?>
<?php endif; ?>
</h1>
It is obviously missing the various "itemprop" calls. But I was able to fix the whole thing by simply adding a > a the end of the H1 like this:
- Code: Select all
<h1> itemprop="name"
instead of
- Code: Select all
<h1 itemprop="name"
Thank you