Show Sidebar Log in
Commons In A Box Logo
  • Home
  • About
    • Project Team
    • Logos and Graphics
  • Showcase
    • CBOX Classic Showcase
    • CBOX OpenLab Showcase
  • Demo
  • Get Started
  • Documentation
    • Technical Guide
    • CBOX Classic Guide
    • CBOX OpenLab Guide
  • Support Forums
    • CBOX Classic
    • CBOX OpenLab
    • Developers Forum
  • News

Group Admins

  • Profile picture of Scott Voth

CBOX Classic Support

Public Group active 5 months ago

This group provides support for Commons In A Box Classic, our original software for community-building. Register for an account or log in to commonsinabox.org, then join the group and post your question here.

My Home in Main Menu

  • This topic has 8 replies, 2 voices, and was last updated 11 years, 8 months ago by sam brown.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • August 7, 2013 at 3:46 pm #3319
    sam brown
    Participant

    Is there any way to add a ‘My Home’ tab in the main menu that would take logged in members back to their own profile page. I appreciate these links are dynamic in that each ‘My Home’ needs to link back to a different page based upon the username but I would really appreciate knowing whether or not there is a solution.

    So  far users are diverted straight to their profile upon logging in but when they leave that page they need to find themselves in members or the home page log in and click on their name to navigate back again. More importantly members who activate their account are stranded on the activation until they work out how to track their profile page down.

    Maybe I just haven’t work the system out, so all advice gratefully accepted 🙂

    August 7, 2013 at 5:42 pm #3320
    Bowe Frankema
    Member

    Hi Sam,

    Don’t you have the WP Admin bar enabled? Just like on this site you would have a nice user menu on the top right of every page. I think that makes the most sense from an UX standpoint. If you really need that custom link in the menu, let me know, and I’ll look if I can figure something out for you 🙂

    Attachments:
    You must be logged in to view attached files.
    August 7, 2013 at 7:10 pm #3322
    sam brown
    Participant

    Hi Bowe, If you could sort something out for me that would be  absolutely fantastic.

    August 8, 2013 at 1:07 pm #3342
    Bowe Frankema
    Member

    Hi Sam,

    I’ve written a tutorial to help you and possibly others with getting this done. Check it out here:

    https://commonsinabox.org/archives/3329

    Hope this helps!

    August 8, 2013 at 3:31 pm #3348
    sam brown
    Participant

    You are a star, thank you I really appreciate you bailing me out. Just one more question. Having got my child theme the menus on the front end were all over the place as your guide said they would be but in the back (admin) end they looked as normal. Have I panicked too quickly, should  I have just re-saved the menu to restore it?

    August 8, 2013 at 4:29 pm #3351
    Bowe Frankema
    Member

    No problem Sam!

    The menu’s are still there you just need to re-assign them to the right Menu Locations. See the attached screenshot (assuming you’re on WP 3.7)

    Attachments:
    You must be logged in to view attached files.
    August 8, 2013 at 6:34 pm #3355
    sam brown
    Participant

    I’m really sorry you’re having to baby me through this … but now I’ve sorted the menus (thank you), I can’t alter logo, favicon etc. Every time I go into CBOX theme options, clicking on Start; Options;User Doc; or Dev Doc, I open up a new window that is completely blank bar a O in the top left hand corner. Looks like the student is a long way from becoming the master!

    August 9, 2013 at 9:28 am #3366
    sam brown
    Participant

    I have read the comments on Possible CBOX Theme Options bug resulting from upgrade to WordPress 3.6. so issue resolved. Thanks again.

    October 21, 2013 at 10:58 am #3776
    sam brown
    Participant

    @Bowe sorted adding this to my main menu and it works brilliantly. I have the rest of my menu in bold and I would like the My Profile/My Home tab to be the same. Where/how would I alter the font weight from normal to bold.

    /**
    * Add a Custom “My Profile” link to the Main Menu
    *
    */
    function cbox_custom_profile_menu_item ( $items, $args ) {
    if ($args->theme_location == ‘main-menu’) {
    $profilelink = ‘<li class=”my-home-menu”>‘ . __(‘My Home’) . ‘‘;
    $items .= ”;
    $items = $items . $profilelink;
    }
    return $items;
    }
    add_filter( ‘wp_nav_menu_items’, ‘cbox_custom_profile_menu_item’, 10, 2 );

    Apologies for what is probably a very basic question but as I am prone to taking my site off air with my guessed at coding, I thought it best to ask the experts.

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Log In
Group logo of CBOX Classic Support
  • Home
  • Forum
  • Announcements
  • Docs
  • Members 287
  • Send Invites

Groups

Newest | Active | Popular | Alphabetical
  • Group logo of CBOX Classic Support
    CBOX Classic Support
    287 members
  • Group logo of CBOX Pioneers
    CBOX Pioneers
    71 members
  • Group logo of CBOX Developers
    CBOX Developers
    40 members
  • Group logo of CBOX OpenLab Support
    CBOX OpenLab Support
    22 members
  • Group logo of CBOX-OL Testing Partners
    CBOX-OL Testing Partners
    12 members

CBOX has its roots in the CUNY Academic Commons, which in turn was made possible through funding from The City University of New York itself.

CUNY Logo

CUNY Academic Commons Logo

City Tech logo

The Commons In A Box was made possible through the generous support of the Alfred P. Sloan Foundation.

Alfred P. Sloan Foundation Logo

NEH Logo

The CUNY Graduate Center has directly contributed to the CUNY Academic Commons, housing the project since its inception, and has contributed to CBOX through its GC Digital Initiatives.

CUNY Graduate Center Logo

CUNY Graduate Center Digital Initiatives Logo

Powered by Commons In A Box
css.php
Skip to toolbar
  • About WordPress
    • WordPress.org
    • Documentation
    • Learn WordPress
    • Support
    • Feedback
  • Log In
  • Register