I am using bootstrap with secondary sidebar. I tried increasing the width of the sidebar by changing span* class in page.tpl.php of my subtheme. But the sidebar is pushed below the section wrapper as its span class doesn't changes respective to the sidebar. If i enter a span class manually in section wrapper removing the function, it works the way it should.

<section class="<?php print _bootstrap_content_span($columns); ?>">

So whats the correct way to do this?

Comments

markhalliwell’s picture

Title: How to change the sidebar width? » Enhance _bootstrap_content_span() to be more dynamic
Category: support » feature

Currently, there's no "correct" way to do this out of the box. What I would would recommend doing though is copying the _bootstrap_content_span() function into your sub-theme's template.php file. Rename that function to something like _subtheme_bootstrap_content_span()and change the span classes in there. Then in your page.tpl.php file, call your new sub-theme's content span function instead like:

<section class="<?php print _subtheme_bootstrap_content_span($columns); ?>">

You probably shouldn't manually add/edit these span tags since there can be sidebars on some pages and not others. This function helps determine the correct span classes to use in this type of scenario.

Marking this as a feature request. I too would like to see this be a little easier than it currently is.

markhalliwell’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)
Related issues: +#2128129: Provide setting to change sidebar/content widths