yan-k
5/17/2016 - 7:55 AM

Change archive layout

Change archive layout

/**
	 * Modify Archive Pages to Display as Grid View
	 */
	add_filter('avf_blog_style','yanco_avia_change_category_blog_layout', 10, 2); 
	function yanco_avia_change_category_blog_layout($layout, $context) {
		if($context == 'archive') {
			$layout = 'blog-grid';
		}

		if($contect == 'tag') {
			$layout = 'blog-grid';
		}

		return $layout;
	}