Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Still looking for a fix: Community Menu in the buddy/admin bar


  • kkradel
    Participant

    @kkradel

    WP 3.2.1 running BP 1.5 upgraded from 1.2.10

    After not being able to figure out how to add just one html link to the buddy/admin bar, I found a snippet to add an html drop down menu. Adding the function to a bp-custom.php file.

    The menu looks fine, it just doesn’t work and I’ve tried many different kinds of edits to the file to try and get it to work.

    The file is:

    <?php
    
    function pages () { global $bp; ?>
    
    <li><a href="http://www.mysite.com">Community</a>
    <ul>
    <li><a href="//www.mysite.com/activity”">The Stream</a></li>
    <li><a href="//www.mysite.com/blogs”">Members Blog Actvity</a></li>
    <li><a href="//www.mysite.com/members”">Members Directory</a></li>
    <li><a href="//www.mysite.com/groups”">Public Groups</a></li>
    <li><a href="//www.mysite.com/about/become-a-member”">Join</a></li>
    <li><a href="//www.mysite.com/about/contact”">Contact</a></li>
    </ul>

    I really don’t want the word “Community” to be a link, but if I add it without the href, it breaks.

    Any answers as to why this doesn’t work and how to make it work would be greatly appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)

  • Boone Gorges
    Keymaster

    @boonebgorges

    Don’t use `do_action()`. Use `add_action()`


    kkradel
    Participant

    @kkradel

    I think it’s the same results with add action – I’ve edited that back and forth a few times, but I’ll try again.


    kkradel
    Participant

    @kkradel

    Yes, that makes no difference. Well, it does make a difference, but changing it does not fix the problem.


    kkradel
    Participant

    @kkradel

    OK, I just fixed it. I don’t know why I didn’t notice this before – it was the quote marks in the href= !! Those little grey squares that are in the snippet example above made me think to check those out.

    I had copied and pasted that snippet and didn’t think to check the quote marks as they looked fine, but really they weren’t!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Still looking for a fix: Community Menu in the buddy/admin bar’ is closed to new replies.
Skip to toolbar