<?php /** * This file adds the Custom Archives to the Captivating Theme. * * @package Captivating * @link http://restored316designs.com/themes * @author Lauren Gaige // Restored 316 LLC * @copyright Copyright (c) 2015, Restored 316 LLC, Released 08/09/2017 * @license GPL-2.0+ */ //* Adds a CSS class to the body element add_filter( 'body_class', 'captivating_archives_body_class' ); function captivating_archives_body_class( $classes ) { $classes[] = 'captivating-archives'; return $classes; } //* Display as Columns add_filter( 'post_class', 'captivating_grid_post_class' ); function captivating_grid_post_class( $classes ) { if ( is_main_query() ) { // conditional to ensure that column classes do not apply to Featured widgets $columns = 3; // Set the number of columns here $column_classes = array( '', '', 'one-half', 'one-third', 'one-fourth', 'one-fifth', 'one-sixth' ); $classes[] = $column_classes[$columns]; global $wp_query; if( 0 == $wp_query->current_post || 0 == $wp_query->current_post % $columns ) $classes[] = 'first'; } return $classes; } //* Remove the breadcrumb navigation remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); //* Remove the post info/meta function remove_action( 'genesis_entry_header', 'genesis_post_info', 9 ); remove_action( 'genesis_entry_header', 'genesis_post_meta', 12 ); //* Remove the post content remove_action( 'genesis_entry_content', 'genesis_do_post_content' ); genesis();