• Resolved SRD75

    (@srd75)


    Out of the box, the main content region contains:
    <div class="col-md-12 content-area" id="main-column">

    and the sidebar is <div class="col-md-6 page-header-top-right">

    I’ve checked /inc/template-functions.php and it looks correct:

    if (!function_exists('bootstrapBasicGetMainColumnSize')) {
    	function bootstrapBasicGetMainColumnSize()
    	{
    		if (is_active_sidebar('sidebar-left') && is_active_sidebar('sidebar-right')) {
    			// if both sidebar actived.
    			$main_column_size = 6;
    		} elseif (
    				(is_active_sidebar('sidebar-left') && !is_active_sidebar('sidebar-right')) ||
    				(is_active_sidebar('sidebar-right') && !is_active_sidebar('sidebar-left'))
    		) {
    			// if only one sidebar actived.
    			$main_column_size = 9;
    		} else {
    			// if no sidebar actived.
    			$main_column_size = 12;
    		}
    
    		return $main_column_size;
    	}// bootstrapBasicGetMainColumnSize
    }

    So, the main content displays underneath the bottom of the sidebar.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter SRD75

    (@srd75)

    Apologies.

    What I was seeing was default widgets in header-right.

    Removing them corrected the issue.

    Because I also had this same confusion, just to clarify for anyone who didn’t understand SRD75’s shorthand:

    • After you install Bootstrap Basic as a theme, or a child theme based on it, it may look as if the main content, including your site menu, is below a blank space on the left and the default WordPress widgets on the right.
    • This is because WordPress puts the default widgets into the “Header right” widget.
    • Go to Appearance > Widgets and expand the “Header right” widget space shown there. You should see these default widgets that are shoving your content down the page.
    • To fix, drag all the widgets (or all but, maybe, “Search”) out of the “Header right” widget space. You can either move them to the left area of your admin workspace, where your available widgets are located, waiting for you to use them. Or you can move them into the “Sidebar right” widget space, which is probably how it should have looked in the first place.
    Theme Author vee

    (@okvee)

    Thank you @derebaker for clarification.

    I just ran into this problem as well with default widgets above the menu and it took me ages to find this solution – it would be nice to either fix this or at least add instructions to the ‘bootstrap basic help’ page.

    Theme Author vee

    (@okvee)

    Do you want me to add instruction to help page or change default widget to right sidebar?

    I’m not sure what will happens when I change the default widget to right sidebar.

    If you can figure it out I suggest changing default widget to right sidebar – it’s nice for theme users if it all just works.

    Theme Author vee

    (@okvee)

    updated

    I just tried it on a new site and the widgets are in the correct place and looking great!
    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Out of the box, main content is 12, and sidebar is 6’ is closed to new replies.