I created menus using the option on page/story/book creation pages by selecting the parent menu. I am trying to exclude these menu items from the front page. These menu items do not show up in the administer->blocks page. How do I exclude them from the from the front page if they are not blocks?

Thanks.

Comments

andrewtf’s picture

One easy way to do this (assuming you're using a phpTemplate-based theme) is to go into your theme files and create a copy of your page.tpl.php file and rename it page-front.tpl.php. This gives you a separate page template for the front page. Now go into your new template and find the PHP code that prints the primary links and remove it. Look for something like this:

<?php if ($primary_links): ?>
     <div id="primary">
     <?php print theme('links', $primary_links); ?>
      </div> <!-- /#primary -->
<?php endif; ?>

Note that this leaves in the nav bar and secondary links. You'd have to edit the necessary php to omit those, too.

tamnguyen’s picture

or you can just edit the page.tpl.php to

<?php if ($primary_links && !$is_front): ?>
     <div id="primary">
     <?php print theme('links', $primary_links); ?>
      </div> <!-- /#primary -->
<?php endif; ?>