Community & Support

Secondary links showing up in header

I configured my secondary links block to show up in my footer. However, the links appear in both my header and footer. When I disable the block, the footer disappears, but the secondary links stay in the header. I have my blog and forum configured to show up in the header but that's it. I haven't even configured at primary links block at this point. What am I doing wrong?

PS: I tried to find this in the handbooks and could not. Perhaps it's too specific of a question.

Thanks!

Comments

Okay, this may have fixed it.

Because I am inherently stubborn, I kept playing with my site after posting this question. As I mentioned, I have yet to find resolution in the handbooks. At any rate, I was able to remove the links from my header but keep them in the footer, as configured in my block.

I saw this question in another post and it was unresolved, so I thought I would post my solution. If this is wrong, someone please correct me so I don't mess anyone else up though.

Anyway, here's what I did: Administer>Themes>(my theme)>configure> Then, I scrolled down to Toggle display. I unchecked secondary links.

Depends on the theme

The reason stuff like this isn't in the handbook is because it's different for every theme. If you want to see what's going on under the hood, open up page.tpl.php in a code editor and look for code that looks something like this:

//From the Garland theme in Drupal 5

<?php if (isset($primary_links)) : ?>
<?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?>
<?php endif; ?>
<?php if (isset($secondary_links)) : ?>
<?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>
<?php endif; ?>

In your case, turning off secondary links has the effect of causing the if (isset($secondary_links)) : test to return FALSE, so the secondary links don't get printed to the page. The code to do this in the theme you're using may not be exactly like this, but it will serve the same purpose.

Hope that's helpful,

Doug Gough
ImageX Media

Don't understand why but,,,

This worked for me as well as I was having both my primary and secondary links show up in the header and the right sidebar (where I wanted them) even though the blocks admin page stated there were no blocks in the header. What I don't understand is why I can still see the primary and secondary links menus that I created in the right sidebar. I won't argue though as that's where I want them so whatever works is fine with me. Any explanations out there?

Same here

No explanation, just comment: Allowing users to use different themes creates awful mess. It's not mentioned anywhere, but it seems, that there are priorities -- theme basic configuration admin/build/themes/settings/garland, then block configuration admin/build/block/list/garland and at last menu settings admin/build/menu.
Anyway, thanks for help!