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 4 months, 3 weeks 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.

[HELP] Menu Icons in Profile Sidebar

  • This topic has 11 replies, 3 voices, and was last updated 12 years ago by Schneizel Britannia.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • April 2, 2013 at 2:59 am #2373
    Schneizel Britannia
    Participant

    I tried everything to solve this problem of mine but I really can’t make it. I’m just a newbie in this field. My problem is that when I installed a plugin, like BuddyPress Media, it automatically creates a new sidebar menu named “Media” along with the menus: Activity, Profile, Friends, Groups, etc ….

    All I want is to add an icon besides “Media” …. So it will look well along with the other menus that have icons….

    Also if you can suggest me where can I get similar black icons that you are using, it will be a great help.

    Hope you can help me out. Thanks again for providing CommonsinaBox for free. ๐Ÿ˜€

    April 2, 2013 at 1:56 pm #2378
    Ray
    Keymaster

    Hi Schneizel,

    The CBOX Theme’s sidebar navigation menu does not allow you to remove any subnav items. However, you could get creative and hide the BuddyPress Media subnav items with a few CSS rules.

    April 2, 2013 at 8:02 pm #2383
    Schneizel Britannia
    Participant

    Ahm, the thing is I don’t really have a plan to remove any of your subnav items. It is really common that when you install a plugin another subnav will appear on that area. What I’m trying to do is to find a way on how to put icon besides it so that it will look well along with your preset subnav items.

    April 3, 2013 at 9:28 pm #2388
    Ray
    Keymaster

    Hi Schneizel,

    I misread your initial forum post. Apologies!

    Unfortunately, the subnav icons are manually added by the theme. So if plugins add new subnav items, we’ll need to manually add new icons for them.

    In the meantime, you should be able to add new icons yourself if you are familiar with CSS. If you’re not familiar with CSS, you’ll have to wait until the theme is updated to include these new icons.

    If you are familiar with CSS, you could use findicons.com to search for icons that you could add to your CSS stylesheet. I use that site whenever I need to add some nice UI graphics!

    Hope that helps.

    April 6, 2013 at 10:23 am #2397
    Schneizel Britannia
    Participant

    Ahm, thanks for the information. I’m familiar with CSS. Anyway, what file in your theme has the code for subnav items or has the “Media” item added? I tried looking in sidebar.php but couldn’t find it.

    April 6, 2013 at 6:59 pm #2398
    Ray
    Keymaster

    The icons actually use a font.

    So if you want to add your own icon temporarily, use the background CSS rule and link to your icon.

    If you don’t know how to use the background CSS rule, here’s a quick tutorial:
    http://www.portent.com/blog/design-dev/class-up-your-link-icons-with.htm

    If you are adding your own icon, also make sure you target the correct <li>ย ID. Use the web developer tools that come bundled with your browser. I personally use Firebug on Firefox. But other people like using the Developer Tools that come bundled with Chrome / Safari.

    April 6, 2013 at 11:14 pm #2403
    Schneizel Britannia
    Participant

    I tried adding this

    .user-media {
    background:url(images/smiley.png) center left no-repeat;
    padding:0 16px 0 0;
    white-space:nowrap;
    }

    and this

    #user-media {
    background:url(images/smiley.png) center left no-repeat;
    padding:0 16px 0 0;
    white-space:nowrap;
    }

    but nothing seems to work. Also. Do i really need to add them just in commonsinabox infinity theme css.stylesheet or somewhere else?

    April 7, 2013 at 9:26 am #2405
    Scott Voth
    Keymaster

    Hi – Can you try putting something like this is the custom CSS (Appearance>>CBOX Theme Options>>Global>>Custom CSS) ?

    #nav-media:before {
    content: url(http://your site’s domain/wp-content/uploads/2013/04/ your icon.png);

    }

    seems to work for me.

    April 8, 2013 at 2:58 am #2407
    Schneizel Britannia
    Participant

    It works!!!

    Thanks a lot Scott Voth!!! ๐Ÿ˜€

    May 10, 2013 at 11:49 pm #2655
    Schneizel Britannia
    Participant

    Hello, I just updated CBOX to the latest version, I also updated the CBOX theme.

    Here’s my problem with the latest version

    The code you gave to me to show an icon in profile sidebar seems not to work now:

    #nav-media:before {
    content: url(http://your siteโ€™s domain/wp-content/uploads/2013/04/ your icon.png);

    }

    What should I do?

    May 12, 2013 at 2:06 am #2668
    Schneizel Britannia
    Participant

    Bump… This seems not to work to the latest CBOX…

    May 14, 2013 at 5:39 am #2676
    Schneizel Britannia
    Participant

    Problem Solved. Looks like the CBOX update deletes my icons so I just reuploaded them. ๐Ÿ˜€

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 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