cancel
Showing results for 
Search instead for 
Did you mean: 

Change in the Category Page the Title of the Category by the Meta Tittle

Change in the Category Page the Title of the Category by the Meta Tittle

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()) . ''; } ?>