forked from studiopress/genesis-sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
34 lines (29 loc) · 864 Bytes
/
archive.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
* Raw Child.
*
* structuring the posts and pages
*
* @package Raw Child
* @author rawsta
* @license GPL-2.0-or-later
* @link https://github.com/rawsta/raw-child/
*/
// Full Width
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
/**
* Blog Archive Body Class
*/
function raw_child_blog_archive_body_class( $classes ) {
$classes[] = 'archive';
return $classes;
}
add_filter( 'body_class', 'raw_child_blog_archive_body_class' );
// Move breadcrumbs
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
add_action( 'genesis_archive_title_descriptions', 'genesis_do_breadcrumbs', 8 );
// Remove description on paginated archives
if ( get_query_var( 'paged' ) ) {
remove_action( 'genesis_archive_title_descriptions', 'genesis_do_archive_headings_intro_text', 12, 3 );
}
genesis();