-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
executable file
·36 lines (32 loc) · 1009 Bytes
/
functions.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
35
36
<?php
//
// Recommended way to include parent theme styles.
// (Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme)
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( 'parent-style' )
);
}
//
// Your code goes below
//
// Define this function so that GeneratePress doesn't do it for us
function generate_add_footer_info() {
?>
<span class="copyright">
<?php esc_html_e( 'Copyright', 'rmm' ); ?>
©
2012 – <?php echo date( 'Y' ); ?>
<?php esc_html_e( 'Red Mountain Makers', 'rmm' ); ?>
</span>
·
<?php printf(
esc_html__( 'Proudly powered by %s', 'rmm' ),
'<a href="https://wordpress.org/">WordPress</a>'
);
}
// Show a custom footer using GeneratePress hooks
add_action( 'generate_credits', 'generate_add_footer_info' );