Columns in an Element on an Archive page

I have created a site footer with an element that includes 3 query loops. I’ve noticed on Archive pages it injects the ‘grid-33’ class to create columns. I’m guessing this is how GP creates columns in the main loop … but is there a way to prevent it happening in other loops?

Try adding this PHP snippet:

add_filter( 'post_class', function( $classes ) {
	if ( ! is_admin() && in_array( 'gb-query-loop-item', $classes ) ) {
		$index = array_search('generate-columns',$classes);
if($index !== FALSE){

	return $classes;
} );

Adding PHP: Adding PHP - Documentation

Thanks Fernando that’s done the trick.

You’re welcome @andrew_vincent!