Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Set archives to full width if using Elementor Themer.
add_action( 'wp', function() {
add_filter( 'body_class', function( $classes ) {
if ( function_exists( 'elementor_location_exits' ) && elementor_location_exits( 'archive', true ) ) {
$classes[] = 'full-width-content';
return $classes;
} );
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment