I'm trying to change the Category Blog article titles from H1 to H2.
I've already tried creating a template override for com_content > tmpl > article > default.php. I found this line:
<div class="page-header">
<h1> <?php echo $this->escape($this->params->get('page_heading')); ?> </h1>
</div>
But that is only for the page header, not the article title. The article title is placed by this line:
<<?php echo $htag; ?> itemprop="headline">
<?php echo $this->escape($this->item->title); ?>
</<?php echo $htag; ?>>
But there is no tag around that code to control the heading size.
Right now in my site, in the Category Blog menu item settings, under Page Display, "Show Page Heading" is set to Hide. This causes the article titles to be H1 tags. This is a problem because the name of my blog is already the H1 tag on the page. If I Show the page headings instead, the article title becomes a H2 tag like I want, but then an unwanted page heading appears above it, set as a H1 tag.
I can create a CSS hack like this to remove the unwanted page heading, but I wonder if there's a better solution.
div.page-header h1 {display:none}