Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
They appear to be hard coded somewhere but can't find it. It displays right beneath the main menu.
Comment | File | Size | Author |
---|---|---|---|
#15 | Zrzut ekranu 2013-02-14 (godz. 01.16.41).png | 24.81 KB | siefca |
#13 | user bar.png | 138.66 KB | pdeclarens |
#8 | screenshot_respond-theme_user-menu_secondary-menu.png | 105.75 KB | paskainos |
mainmenu.png | 4.06 KB | espirates |
Comments
Comment #1
fubhy CreditAttribution: fubhy commentedDeactivate the secondary menu links in your theme settings like with any other theme. They are "hard-coded" into region--menu.tpl.php in omega/templates. I say "hard-coded" because they just refer to the drupal built-in "secondary menu" functionality (drupal menu system).
Comment #2
espirates CreditAttribution: espirates commentedI see got it. Drupal 7 doesn't appear to have secondary links anymore, is this something that will be removed in the future ?
Comment #3
fubhy CreditAttribution: fubhy commentedDrupal 7 has primary AND secondary menus still. By default your user menu is the secondary menu. Not sure what you mean?!
Comment #4
espirates CreditAttribution: espirates commentedThe only menus I see in the Drupal 7.4 are the ones listed here
Main menu
Management
Navigation
User menu
Comment #5
fubhy CreditAttribution: fubhy commentedWell.. Those are the MENUS! You can make one of them the Primary menu and one can be the Secondary menu (or they are the same). Primary / Secondary is not a menu itself, its a configuration option .. Basically telling drupal which menu should be primary and which should be secondary. You are missing a major point here!
Comment #7
mErilainen CreditAttribution: mErilainen commentedI believe espirates was missing the settings tab in D7, which I didn't notice first either.
Just go to /admin/structure/menu/settings, et voila!
Comment #8
paskainos CreditAttribution: paskainos commentedI reopened this issue because it's [still] counterintuitive (ie; confusing) from a UI standpoint. As you pointed out @mErilainen, 'Main links' and 'Secondary links' are set on the Menu Settings page (/admin/structure/menu/settings). And while that guidance is helpful, as @espirates pointed out above (#4) 'Secondary menu' isn't listed in the directory of menus, which could easily confuse [Omega] users, sending them off looking for a Secondary menu 'switch' that doesn't [yet?] exist. Perhaps the best illustration of how counterintuitive & confusing this can be is the attached screenshot of the 'Respond' Omega subtheme (illustration purposes only) which shows the 'Secondary menu' displayed (lower right) and nicely styled, and the 'User menu' (the same menu used in the 'Secondary menu' as set in Menu Settings under 'Secondary links') displayed (upper left) and styled completely different.
I realize this issue goes beyond the scope of the Omega theme system, however I thought I'd reopen this issue since:
I think an intuitive solution would be to render the 'Secondary menu' as a block. Again, users expect this kind of functionality in Omega, as attested to by this issue originally being posted in the Omega queue, in spite of @fubhy pointing out the issue actually lies within the drupal menu system. I know Jake posted something similar to this issue (#1070628: Restructure Menu Options/Rendering) regarding menu handling in the 2.x version, but the 'Menu settings' tab identified in his screenshot(s) seems to have vanished, and is no more... Thoughts?
Comment #9
Cellar Door CreditAttribution: Cellar Door commentedSo the request is to change the name of the "Main Menu" and "Secondary Menu" to "Primary Links" and "Secondary Links" in order to have clarity? Or rather is it to re-instate the 7.2.x feature for menu settings where you have them either enabled/disabled?
Rendering the secondary menu as a block can happen in the blocks config already. Core just allows you to designate primary and secondary menus and gives a hook which Omega renders in it's tpl as fubhy mentioned. I don't know if it's the right place for Omega to make that block. I do agree that clarifying the links titles in the settings may help with some confusion but the creation of a new block is something I think a module would be better at doing if needed.
Comment #10
paskainos CreditAttribution: paskainos commentedI vote for the option to:
Comment #11
marcoka CreditAttribution: marcoka commentedhuh? are we talking about menu names that are set by drupal core? i dont really get this problem. there a settings to disable enable the two Main and secondary menus (i always do that) and then you can use the blocks. the disabling function is available in nearly every theme.
http://screensnapr.com/v/frEBJw.jpg
Comment #12
himerus CreditAttribution: himerus commentedOkay... this is a core support request.... in Drupal 7, by default on EVERY new install, the menu settings IN DRUPAL CORE define the main-menu as the primary menu, and the user menu as the secondary menu...
The issue title and original question was: How to remove user menu links from the main menu section ?
This can be solved by going to admin/structure/menu/settings and TURNING OFF the secondary menu, or changing it to a different menu source.
DO NOT open this issue again. If there is truly some menu bug somewhere (this is NOT one) then create a new issue with an appropriate title/description.
Comment #13
pdeclarens CreditAttribution: pdeclarens commentedHi,
I did desactivate primary & secondary menus un theme apparence parameters...
But the user menu still appears in User bar first ans second...(see file attached)
where am I wrong?
thanks
Comment #14
siefca CreditAttribution: siefca commentedI have same issue, duplicated user menu and search box on top, even if corresponding blocks are disabled.
Comment #15
siefca CreditAttribution: siefca commentedMy theme is Omega-based theme. Omega version is 7.x-3.1
Attaching how it looks like.
Other themes does not have this error.
Comment #16
siefca CreditAttribution: siefca commentedThat doesn't work.
Doubled user-menu still appears for logged-in users.
Comment #17
TanvirAhmad CreditAttribution: TanvirAhmad as a volunteer commentedIn admin/structure/menu/settings, you can select the source for the Main links, and the Secondary links.