Unable to set number of columns in code
-
I am using this code in function.php to set the grid layout on my news page. The single featured article works fine but there are 2 columns as opposed to 3 as required- thanks for any advice
//Change grid layout for news archive
function be_news_grid_args( $args, $query ) { if( is_category( 'News' ) ) $args['teaser_columns'] = 3; $args['features_on_front'] = 1; return $args; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Unable to set number of columns in code’ is closed to new replies.