• Resolved Daedalon

    (@daedalon)


    Currently WP claims on wp-admin/nav-menus.php that the theme only supports one menu. With BP enabled, a second menu, however, is shown. This menu is a proper WP menu in every other regard except for display – there’s no GUI option to display it when BuddyPress is not active.

    What child theme hack could I use to expose for example the menu with ID 8 to be displayed at the spot where the Elbee Elgee BuddyPress Menu is displayed by default? Or can I force the display of Elbee Elgee BuddyPress Menu without having BuddyPress installed and just replace the contents?

    The best long-term solution would be to expose it as a second menu that users can use for anything they wish. (Minor priority: I’d even say that a third menu would be welcome – one that is on the same row as the current main navigation menu, but aligned to the right. Thus it’d be possible to have eg. three links on the left side and two on the right side. The three on the left could be front page and two categories and the two on the right could be About and Contact. Grouping them separately improves readability.)

    http://wordpress.org/extend/themes/elbee-elgee/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Doug Stewart

    (@zamoose)

    Daedalon:
    Could those functions not be accomplished via the Custom Menu Widget available under Appearance -> Widgets?

    Thread Starter Daedalon

    (@daedalon)

    The locations I am referring to are not widget locations. To use http://lblg.zamoose.org/ as an example, I am looking forward to using:

    1. The place where now reads Home, Activity, Members, Groups and Forums as a regular menu spot without having BuddyPress installed.
    2. Having the space under it, on the same bar as the main menu, be a second menu that is aligned to the right. Example code below.

    The first one should be easy to create with a few additional lines of code in my child theme’s functions.php – I just don’t know the theme internals enough to know which line would do it.

    The second one shouldn’t be much harder to do if I’d just know which hooks to call. It’s basically just creating a second menu right after the primary menu with the only differences of being aligned to the right and being called secondary menu instead of primary. I could likely hack it together by looking at the existing plugin code, but am a bit hesitant since I might create a solution that would be blown in a main theme update. The intended result in HTML is this:

    Currently:

    <div id="menu">
      <div class="menu-primary-menu-container"> <!-- aligned to the left -->
        <ul id="menu-primary-menu" class="menu">
          <li id="menu-item-123" class="menu-item etc.">...</li>
        </ul>
      </div>
    </div>

    The intended improvement:

    <div id="menu">
      <div class="menu-primary-menu-container"> <!-- contents aligned to the left -->
        <ul id="menu-primary-menu" class="menu">
          <li id="menu-item-123" class="menu-item etc.">...</li>
        </ul>
      </div>
      <div class="menu-secondary-menu-container"> <!-- width="*", contents aligned to the right -->
        <ul id="menu-secondary-menu" class="menu">
          <!-- everything here as in primary menu -->
        </ul>
      </div>
    </div>

    So where currently it reads:

    Home   Readability Test   Layout Test   Images Test

    The site admin could have it read:

    Home   Readability Test   Layout Test   Images Test                      About   Contact

    Thread Starter Daedalon

    (@daedalon)

    I’ve later managed to do this by myself. Don’t remember outright what was the trick, but if someone desperately needs the same feature, let me know and I’ll help you out.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Theme: Elbee Elgee] Adding the BP menu as proper WP menu’ is closed to new replies.