How to set custom layout width on archive
-
Hi there, the code below changes the container width for categories but I can’t work out how to do it for the main archive (the blog page). Could someone advise please.
Cheers
add_filter( 'astra_get_option_site-content-width', function( $width ) { if ( has_category('block') ) { $width = 900; } return $width; } );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to set custom layout width on archive’ is closed to new replies.