1 Answers

Static Pages

Asked by: Sarit 2039 views , ,


My Magento theme displays my store categories on the top horizontal menu. I would like to add a link that will look like a category but will link to a static info page.

Any idea how to do it?


1 Answers

  1. Magentist on Oct 06, 2010

    Hi Sarit,

    I’d say by far the easiest way to do this is to create a “category” for your CMS page.

    First, rather than creating a CMS page, create a Static Block with the contents for your page. Then create a new product category for your page. Under the “Display Settings” tab for your new category, set the Display Mode to “Static Block Only” and set the CMS Block to the Static Block you just created.

    If for some reason you need more control than this option allows you and you prefer to add a navigation link manually, open this file: /app/design/frontend/default/your-theme/template/catalog/navigation/top.phtml

    Just before </ul> add in the code for your link, which should look something like this:

    <li class="level0"><a href="/cms-page-url"><span>My CMS Page</span></a></li>

    Unfortunately, this method can get sloppy. Since Magento doesn’t “know” about your link, it would display as the active page in the navigation when you’re on that page unless you jury-rig a method with CSS. It’ll work, but like I said, it’s a bit sloppier than the first method I mentioned.

    Magento Themes by Magentist

    +2 Votes Thumb up 2 Votes Thumb down 0 Votes

Answer Question