I'm trying to figure out how to make the primary links section only show up in the header and not in the footer. I've been looking for some sort of default page that controls this without any luck.

Comments

Gunnar Langemark’s picture

If your theme puts the links in the footer they must be removed from the theme.

The Pushbutton theme has links in the footer.
if you open the page.tpl.php file and edit or remove the part called:

<table id="footer-menu" summary="Navigation elements." border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td align="center" valign="middle">
    <?php if (isset($primary_links)) : ?>
      <div class="primary-links">
        <?php print theme('links', $primary_links) ?>
      </div>
    <?php endif; ?>
    <?php if (isset($secondary_links)) : ?>
      <div class="secondary-links">
        <?php print theme('links', $secondary_links) ?>
      </div>
    <?php endif; ?>
    </td>
  </tr>
</table>

then you should be set.

Best

Gunnar Langemark
http://www.langemark.com

Syke’s picture

Logically, I looked for some sort of php file in my themes/pushbutton folder before and all I see is a css file. I've looked in all the folders and I'm at a loss for where the file is. (And this is the solution I was looking for, just removing the primary link from the bottom, not entirely.)

gabriella’s picture

Are you using Drupal 4.7? Or Drupal 4.6?
I am no expert but if you are using Drupal 4.6 chanses are that you use Pushbutton with the xtemlate engine. If so, you should look for the xtemlate.xtmpl file. There, if you scroll down a bit, almost to the bottom, you will find this..


<table id="footer-menu" summary="Navigation elements." border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td align="center" valign="middle">
      <div class="primary-links">{primary_links}</div>
      <div class="secondary-links">{secondary_links}</div>
    </td>
  </tr>
</table>

you can ajust it to your needs, perhaps by deleting the div with the primary links..

Syke’s picture

Thank you, that's the one! I just checked and the install is 4.6.5.

edg’s picture

Don't need to edit the code, of course, for the primary and secondary links, if you go into your admin > themes > configure > global settings and just take out the existing HTML.

The link will be

yoursite.com/admin/themes/settings

www.iofilm.co.uk - Not a Drupal site yet!

sangamreddi’s picture

He needs to remove it only form the footer not from the header.
Your solution disables the entire primary links form the site including header section too.

Sunny
www.gleez.com