Skip to:
Content
Pages
Categories
Search
Top
Bottom

Navigation HELP

  • Hello,

    I’m currently developing this WP site: http://www.doghousegamer.com – we’re currently using a free theme just to get the site on its legs etc, however I am developing a new site for DHG. You can see it here: http://www.doghousegamer.com/testsite

    I would like to get rid of the admin-bar at the top. I can do that, but then I loose the login option and all of the links to the profile/activity/messages/friends etc..

    I would love to add the “MY ACCOUNT” link (as an example) with the drop down menu to my main Navigation (under the DHG logo)

    I am using BuddyPress with the BuddyPress Template Pack to make BP work with the PlatformPro theme.

    Thanks for your helpful responses! 🙂

    Jono Bradley

Viewing 10 replies - 1 through 10 (of 10 total)
  • Use the custom menu option if the theme supports it. Otherwise, open up the theme files and hardcode the html in there to the various menu items.

    I’d happily use the custom menu option, however the majority of the links for the profile/activity etc are custom made links for each account ie:

    EDIT PROFILE = http://www.doghousegamer.com/testsite/members/tesctaccount/profile/edit/group/1

    Thanks,

    Jono Bradley


    pcwriter
    Participant

    @pcwriter

    @jonobradley

    Open your theme’s header.php (or equivalent) and find the code for your main navigation. In your theme, you’ll find it in div id="nav_row". There’s probably a call to wp_nav_menus there. Add the following before the closing ul tag (should work 😉 )

    <li></li>

    See the codex for more: https://codex.buddypress.org/theme-development/modifying-the-buddypress-admin-bar/

    Hope this helps 🙂

    @pcwriter

    Thanks for the suggestion there. I’ve had a look through the header.php and cant find div id="nav_row"or any calls to the wp_nav_menus in that file. Any more suggestions on where I should put that code?

    Thanks,

    Jono Bradley


    pcwriter
    Participant

    @pcwriter

    @jonobradley

    Well, looking at your site and their demo site with Firebug, you can see that the nav items are wrapped in a <ul> tag that’s identified like so:
    ul id="menu-nav" or ul class="menu-item"

    That ul sits in a div identified like so:
    div id="nav-row" or div class="main-nav"

    The only other file that I can think of would be functions.php. If the menu is created there, there would be a corresponding do_action in header.php. If you can’t find any reference to the above divs or uls in the header, try in functions. It’s gotta be there somewhere! 🙂

    @pcwriter

    I’ve rechecked header.php and still can’t see anything in there relevant to the nav. I’ve check functions.php and the only line of code in that page is:

    require_one(TEMPLATEPATH . "/includes/core.init.php");

    I assumed that means that functions.php is then calling for that file, I went and opened up that file and that then had a bunch of links to a load of other pages, with nothing that looks like a reference to the navigation.

    Jono Bradley


    pcwriter
    Participant

    @pcwriter

    @jonobradley

    Looks like you’ll have to contact the theme developer then to find out where the nav is, sorry can’t help more :-(

    If you’re using a theme framework, there may be a hook you need to take advantage of. So yeah – talk to the theme author.


    dennissmolek
    Participant

    @dennissmolek

    nav_row is after the content tag so look in index.php Should be there. Functions.php relates to custom functions for your theme, not to your nav.

    Somewhere in your code there is the info that creates that navigation that’s under your logo. Put the code pcwriter mentioned there, it will generate the BP related menu items. My guess is its either in the Header.php(should be) or is called in the index.php file. If you are using a tool like dreamweaver or notepad++ you can just select your template folder and run the find comand, search “nav_row” and there it is!

    Thought I’d update this quickly.

    I’ve given up on trying to get the BP admin bar to work in tandem with PlatformPro navigation. Instead I’ve installed a Plugin (https://buddypress.org/community/groups/buddypress-sliding-login-panel) which creates a rather nice login/profile panel.

    My next job is to get all the profile/message screens working properly. The colors clash and dont work, does anybody know where I would look to edit these things?

    Site = http://www.doghousegamer.com/testsite

    Thanks,
    Jono

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Navigation HELP’ is closed to new replies.
Skip to toolbar