Adding a Secondary Sidebar to your CBOX Theme
I’ve written an extensive tutorial on how to add a secondary sidebar to your CBOX Theme on the PressCrew site.
I’ve written an extensive tutorial on how to add a secondary sidebar to your CBOX Theme on the PressCrew site.
On the CBOX Community forum @Sam asked us the following question:
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
This short tutorial will show you exactly how this can be done.
When you make customisations to your CBOX theme you always do this through a so called Child Theme. We’ve written a simple tutorial on how to download and install a pre-made Child Theme.
Using a FTP client of your choice you now need to open up the following file: cbox-child/engine/includes/custom.php
Once you have that file opened add the following snippet after the opening php tags:
That’s it! Save your changes to the file.
Do a hard refresh of your website and you should now see the following in your main menu:
Do you want to show the “My Home” in a different CBOX menu then the Main Menu? All you need to do is make a small change to the code snippet. On line 7 of the snippet change the following:
if ($args->theme_location == 'main-menu') {
into
if ($args->theme_location == 'over-menu') {
to show it in the Top Menu.
Want to change it into the Sub Menu? Change it to:
if ($args->theme_location == 'sub-menu') {
Done 🙂
If you are a theme developer I strongly advise you to take a look at our Theme Developers guide which contains all you need to know about how to create your own custom CBOX themes!
Have fun!
The Commons in a Box theme comes with a cool set of icons that enhance the user experience for your users. These icons are rendered with an so called icon-font and these are now widely used on the web. There are some rare cases where your hosts server setup causess issue with getting the icons to display properly. Or maybe you would simply like to disable the icons on your site.
This short tutorial will show you exactly how this can be done.
When you make customisations to your CBOX theme you always do this through a so called Child Theme. We’ve written a simple tutorial on how to download and install a pre-made Child Theme.
Before you get started with your development always turn on the special “Developer Mode”. Developer Mode turns on some behind the scenes magic that makes your life easier as a developer. To turn it on add the following to functions.php
of your Child Theme or to wp-config.php
define( 'INFINITY_DEV_MODE', true );
We’re almost there. Using a FTP client of your choice you now need to edit the following file: cbox-child/engine/config/infinity.ini
Once you have that file opened add the following snippet at the end of the file:
It should something like this
That’s it! Save your changes to the file.
Do a hard refresh of your website and you should no more icons. You have successfully disabled the icon fonts on your website!
Now that you’re done making changes you need to turn of developer mode again. Remove the lines you added in step 3 or change them to the following
define( 'INFINITY_DEV_MODE', false );
If you are a theme developer I strongly advise you to take a look at our Theme Developers guide which contains all you need to know about how to create your own custom CBOX themes!
Have fun!
We strongly advise you to NEVER make changes to the CBOX Theme in any way. You will lose all these changes when you update CBOX and you’ll end up with a big headache maintaining the theme over time.
It’s good practice to never change the CBOX theme directly, so always work from a Child Theme. If you are not a developer and are following along with a tutorial written on CBOX.org this post will guide you through the basics!
Download the pre-made CBOX child theme here:
Now that you’ve downloaded the CBOX Child Theme you need to upload and activate it. You can either do this through the build-in uploader in WordPress (found under Appearance > Themes > Install Themes > Upload) or through your FTP client.
Once you’ve uploaded the theme you simply need to activate it.
Important: The first time you activate your CBOX Child Theme you need to set up your widgets and your menus again. This in inconvenient but this is sadly how WordPress works!
Chances are that you’ve found this tutorial through one of our CBOX tutorials, so go back to where you came from and start customising your CBOX community!
I’ve just released version 1.0.5 of Commons In A Box. This maintenance release contains a number of important core software upgrades, including BuddyPress. Several major issues have also been addressed, among which:
You can learn more about the changes in the 1.0.5 release by viewing the “What’s New” page in your WordPress Dashboard, linked at the bottom of Dashboard > Commons In A Box.
Special thanks to Christian Wach and merolino, Commons In A Box users who volunteered bug fixes during this release cycle.
Questions or comments about this release? Visit our user community or our plugin and theme repositories on Github.
I’ve just released version 1.0.4 of Commons In A Box. This is a maintenance release, whose primary purpose is to fix a couple of widget-related issues that arose with the 1.0.3 release earlier this month. Version 1.0.4 also updates all installations to BuddyPress 1.7.2, which contains a number of important security enhancements.
Questions or comments about version 1.0.4 or about Commons In A Box more generally? Visit our community section.
I’ve just released version 1.0.3 of Commons In A Box. 1.0.3 is a maintenance release, with the following major features:
Already using Commons In A Box? You should see an upgrade notice on your WordPress Dashboard > Plugins panel. Upgrade as you do with any WordPress plugin, and Commons In A Box will walk you through the rest of the process. If you’re a new user (welcome!), download Commons In A Box 1.0.3 from its home in the wordpress.org plugin repository. And, as always, if you have comments or questions, please stop by our Community area.
I’ve just released version 1.0.2 of Commons In A Box. This is a maintenance release, with a few bugfixes and plugin version bumps. Highlights:
Update through the WordPress plugin updater, or download version 1.0.2 directly at http://wordpress.org/extend/plugins/commons-in-a-box.
As always, if you have questions, concerns, or comments, check out our community pages.
I’ve just released version 1.0.1 of Commons In A Box. Version 1.0.1 contains a number of minor fixes, notably:
Download Commons In A Box 1.0.1 from the wordpress.org plugin repository, or click the upgrade button in your WordPress Dashboard.
The Commons In A Box team has a holiday gift for you: It’s Commons In A Box version 1.0!
The last few weeks have seen a string of beta releases of the Commons In A Box package, driven by the extremely helpful testing and feedback of an intrepid group of CBOX Pioneers. Many thanks go out to those who have been putting Commons In A Box through its paces.
Have you been waiting for Commons In A Box to leave beta before trying it out? Now’s your chance. Download v1.0 through your WordPress Dashboard (Plugins > Add New > search for “Commons In A Box”), or from the wordpress.org plugin repository.
Questions or comments about Commons In A Box? Features you wish it had, or bugs that you’ve found and would like to see fixed? Join our growing community of users. If you’re a developer, check out commons-in-a-box and cbox-theme on Github.
Happy Holidays to all – now get building!