• Resolved machepap

    (@machepap)


    Hello and thanks for taking a look —

    I’m using a Bootstrap Basic child theme and Content Aware Sidebars plugin. My sidebars were defaulting to col width 3 but I changed them to 2 and adjusted the template-functions.php code accordingly, but main content area (at large screen size) is still showing up as “col-md-6” when I believe it should be “col-md-8”. What am I missing?

    Here’s my function code:

    	function bootstrapBasicGetMainColumnSize() 
    	{
    		if (is_active_sidebar('sidebar-left') && is_active_sidebar('sidebar-right')) {
    			// if both sidebar actived.
    			$main_column_size = 8;
    		} 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 = 10;
    		} else {
    			// if no sidebar actived.
    			$main_column_size = 12;
    		}
    
    		return $main_column_size;
    	}// bootstrapBasicGetMainColumnSize

    Thanks for any help!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joachim Jensen

    (@intoxstudio)

    Hi,

    Unfortunately I am not familiar with that theme, but your code snippet looks fine from what I can tell. I would recommend reaching out to the developers of the parent theme and ask why the column width doesn’t change

    Thread Starter machepap

    (@machepap)

    ok thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘bootstrap issue – how to adjust main content area columns’ is closed to new replies.