Navigation Items

Hi,

please could you tell m in which template tag the navigation items are created? If you look at the enclosed picture, I mean 'Home', 'About me', etc...
Thank you.
Kind regards,

Andrea

  • DavidM
    • DEV MAN’s Mascot

    Hi Andrea,

    These themes are actually child themes of the default BuddyPress theme, which should be located in your themes folder in /bp-default/.

    You'll need to refer to the navigation area in that core theme in this case. And I believe what you're looking for is on line 46 in header.php.

    That said, the nav menus are customizable at Appearance > Themes, if you need to add/remove items from it.

    -David

  • andmog
    • Site Builder, Child of Zeus

    Hi David,

    thank you.
    I tried to customize the theme and created a custom header.php. file.
    I inserted the following code lines about the navigation bar, setting 'menu_id' => 'nav', which should generate a 'nav' tag when looking with the Web Inspector.

    <div id="navigation" role="navigation">
    <?php wp_nav_menu( array( 'container' => false, 'menu_id' => 'nav', 'theme_location' => 'primary':wink: ); ?>
    </div>

    However I get class="menu" as you can see in the attached picture.

    I looked at the same file in the BP Default and the code is:

    <div id="navigation" role="navigation">
    <?php wp_nav_menu( array( 'container' => false, 'menu_id' => 'nav', 'theme_location' => 'primary', 'fallback_cb' => 'bp_dtheme_main_nav' ) ); ?>
    </div>

    In this case with the Web Inspector I get class="nav", as expected.

    Please, could you tell me why in my case I get class="menu" instead?

    Many thanks,

    Andrea

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.