In the template I am using at the top of each category, it is shown as the title of the category but I would like to show as H1 the Meta title of that category. Could you help me? This is the code where get the title of the category.
$title = ''; if (trim($block->getPageHeading())) { $title = 'getAddBaseAttribute() . '>' . $block->escapeHtml($block->getPageHeading()) . ''; } ?>