This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Sidebar layout column stack / collapse at mobile 767px, Jump Start 2.0

  • Creator
    Topic
  • #19909
    John
    Participant

    I notice the framework now collapses at 992px. Is there a recommended way to make it collapse at 767?
    thx,
    John

Viewing 7 replies - 1 through 7 (of 7 total)
  • Author
    Replies
  • #19914
    Jason Bobich
    Keymaster

    Are you referring specifically to the sidebar layouts and when the layout columns stack? — If so, then you’d just do this:

    function my_sidebar_layout_stack() {
    	return 'sm';
    }
    add_filter( 'themeblvd_sidebar_layout_stack', 'my_sidebar_layout_stack' );

    See the function of themeblvd_sidebar_layouts() in /framework/includes/general.php, if you better want to understand what you’re filtering.

    #19916
    John
    Participant

    Perfect,
    thx

    #19946
    John
    Participant

    Along the same lines.. I’d like to be able to set the default stacking of columns to 767.

    I see in class-tb-builder-api on line 822 I’d love ‘std’ to be set to ‘sm’, but I don’t see a function or filter to accomplish this. I know I’m missing something.
    I know this can’t be right, but…

    function jma_core_filter($x) {
    	$x['columns']['options']['stack']['std'] = 'sm';
    	return $x;
    }
    add_filter('themeblvd_core_layouts', 'jma_core_filter');

    thanks again,
    John

    #19960
    Jason Bobich
    Keymaster

    Take what you’re doing and try filtering onto themeblvd_elements, instead. By the time you get to your child theme’s functions.php (after inclusion of the framework at the top of the file), the filter you’re trying to latch onto has already run. That’s why your code doesn’t do anything.

    function jma_elements($x) {
    	$x['columns']['options']['stack']['std'] = 'sm';
    	return $x;
    }
    add_filter('themeblvd_elements', 'jma_elements');
    #19962
    John
    Participant

    that works,
    thx

    #25813
    John
    Participant

    One more issue… The footer columns are set to stack at ‘md’.
    I see the default set in the themeblvd_columns function in:
    framework > includes > layout.php (line 943).

    I see no way to filter in this function, can I do it somewhere else?
    thx,
    John

    #25816
    Jason Bobich
    Keymaster

    It doesn’t look like right now there’s any great way to do that. I’m working on finishing up a huge v2.1 update this week. I’ve added a new filter for the $args that get passed to themeblvd_columns() for the footer columns.

    So, in Jump Start 2.1+, you can do this:

    function my_footer_columns_args( $args ) {
    	$args['stack'] = 'sm';
    	return $args;
    }
    add_filter('themeblvd_footer_columns_args', 'my_footer_columns_args');
Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.