-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
30 lines (25 loc) · 945 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
<?php
/**
* Digital Nomad Theme
*
* This file adds custom archive page to the Digital Nomad theme.
*
* @package Digital Nomad Theme
* @author thebrandiD
* @license GPL-2.0+
* @link https://thebrandidthemes.com/
*/
remove_action( 'genesis_before_loop', 'genesis_do_posts_page_heading' );
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
add_action( 'genesis_entry_header', 'genesis_post_info', 2 );
function digital_nomad_archive_blog_custom() {
if ( is_home() ) {
remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 );
remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 );
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
}
}
add_action( 'genesis_entry_header','digital_nomad_archive_blog_custom' );
remove_action( 'genesis_entry_content', 'genesis_do_post_image',8 );
add_action( 'genesis_entry_header', 'genesis_do_post_image',1 );
genesis();