Skip to content

Instantly share code, notes, and snippets.

@BoweFrankema
Last active December 12, 2015 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BoweFrankema/4707597 to your computer and use it in GitHub Desktop.
Save BoweFrankema/4707597 to your computer and use it in GitHub Desktop.
The CSS needed to display the alternate sidebar properly in the CBOX Theme
// Alt Sidebar
function cbox_alt_sidebar_css() { {
if ( !bp_is_blog_page() ): ?>
<style>
#content {
width: 55%;
}
#sidebar {
width: 25%;
}
#sidebar-alt {
width: 20%;
}
/*Float the sidebar to the right*/
#sidebar-alt {
float: right;
padding: 30px;
}
</style>
<?php endif; }}
// Hook into action
add_action('wp_head','cbox_alt_sidebar_css');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment