Sometimes, when you have few categories, you may want to remove the “All categories” link. Here is how to do this:
OMF v2.x
Upload the file attached to this article to the vqmod/xml
directory on your store
Previous versions of OMF
- Create a mobile theme, if you don't have one already. This is to make sure that you will keep your customizations, if you upgrade OMF in the future.
- Create a new directory inside of
/catalog/view/theme/your_mobile_theme/
and name ittemplate
- Create a new directory inside of
/catalog/view/theme/your_mobile_theme/template/
and name itcommon
- Copy the file
/catalog/view/theme/omf/template/common/footer_mobile.tpl
to/catalog/view/theme/your_mobile_theme/template/common
- Open up the newly copied file(
/catalog/view/theme/your_mobile_theme/template/common/footer_mobile.tpl
) in any text editor (e.g. SublimeText) - Search for
<?php echo $all_categories; ?>
- Delete the entire line:
<a href="<?php echo $all_categories; ?>" class="stack"><?php echo $text_all_categories; ?></a>
This will remove the “All categories” link from the navigation.
- Don't forget to save the file.
0 Comments