Remove Category Title from Specific Page



As I have already explained how to remove title from category page in Magento in our previous tutorial. But if your requirement is to remove category title from specific page in Magento, you can do this by using following simple steps.

Just go to following file

 app/design/frontend/default/theme_folder/template/catalog/category/view.phtml 

and find the following line:

<h1><?php echo $_helper->categoryAttribute($_category, $_category->getName(), 'name') ?></h1>

Now for example if your category id is 55, you can remove category title for this page with following code

<?php if ($_category->getId() != 55) { ?>
   <h1><?php echo $_helper->categoryAttribute($_category, $_category->getName(), 'name') ?></h1>
<?php } ?>

for multiple pages you can change this accordingly like below:

<?php if (!in_array($_category->getId() , array(55, 68, 79))) { ?>
   <h1><?php echo $_helper->categoryAttribute($_category, $_category->getName(), 'name') ?></h1>
<?php } ?>

Now there is another way to remove category title from specific page by adding attributes.
So add a new yes/no attribute to the category called remove_title

Now you can add if condition like below:

<?php if (!$_category->getRemoveTitle()) { ?>
   <h1><?php echo $_helper->categoryAttribute($_category, $_category->getName(), 'name') ?></h1>
<?php } ?>

By this way you can hide or remove category title from specific page from Magento admin.