Beta 3: Layout classes

In the prior release version, I had some custom CSS targeting main.x-layout. That CSS stopped working in the latest release.

Looking at the output CSS, the older x-layout classes are in a grouping called classes="" rather than the class="".

I’m assuming that’s not intentional…?

Thank you! This wasn’t intentional. Fixed for next patch. To patch it temporarily until we land on an RC you can add this:

add_filter( 'cs_layout_atts', function( $atts ) {
    $atts['class'] = ['x-layout'];

    if (is_singular() || is_single() ) {
      $atts['class'][] = 'x-layout-single';
    }

    if ( is_archive() ) {
      $atts['class'][] = 'x-layout-archive';
    }

    return $atts;
  });

We did a huge refactor under the hood in regards to how routing of different templates works in the context of Stacks, standalone Cornerstone, and the new theme options reboot. Those tco- classes will start showing up with the Theme Options reboot.