Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to edit elements in admin bar?

  • Avatar of karolha
    karolha
    Participant

    @karolha

    Hello!

    I would like to edit a bit my admin bar, for example text inside each element: ( Visit -> Take a look / or / Just me -> Lorem ipsum ( inside ny account ) and something like that )

    In bp-core-adminbar i have found function for account menu ( I’d like to edit it too )

    Inside this function is a code for elements:

    <br />
    'echo '</p>
    <ul>';</p>
    <p> /* Loop through each navigation item */<br />
    $counter = 0;<br />
    foreach( $bp->bp_nav as $nav_item ) {<br />
    $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : '';</p>
    <p> echo '<li' . $alt . '>';<br />
    echo '<a href="' . $nav_item['link'] . '">' . $nav_item['name'] . '</a>';</p>
    <p> if ( is_array( $bp->bp_options_nav[$nav_item['css_id']] ) ) {<br />
    echo '</ul>
    <ul>';<br />
    $sub_counter = 0;</p>
    <p> foreach( $bp->bp_options_nav[$nav_item['css_id']] as $subnav_item ) {<br />
    $alt = ( 0 == $sub_counter % 2 ) ? ' class="alt"' : '';<br />
    echo '<li' . $alt . '><a href="' . $subnav_item['link'] . '">' . $subnav_item['name'] . '</a>';<br />
    $sub_counter++;<br />
    }<br />
    echo '</ul>
    <p>';'<br />

    [strong]So[/strong]

    If i want to edit tekxt between

  • . $subnav_item['name'] .
  • I have to find . $subnav_item['name'] . … but where is it?

    Greetings!

    K

You must be logged in to reply to this topic.