I need to change the h1 title using Custom Layout Update field in the category edit view
How can I do this? Change many categories h1 titles without change the category name?
I assume you are using Magento 1.
This solution tested on Magento 184.108.40.206.
Here is what you can try:
1 - In category Custom Layout Update:
<reference name="category.products"> <action method="setAltName"><value>new h1 name</value></action> </reference>
2 - In this file below replace the code to add the
Content to change:
<h1><?php if($this->getAltName()):?><?php echo $this->getAltName() ?><?php else: ?><?php echo $_helper->categoryAttribute($_category, $_category->getName(), 'name') ?><?php endif; ?></h1>
3 - Clear Magento cache.
This solution uses
H1 and if it is not set it uses category name.
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?