-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
35 lines (33 loc) · 1.23 KB
/
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
<?php
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')
);
}
// Add two menus: this theme uses wp_nav_menu() in two locations.
register_nav_menus( array(
'primary' => __( 'Primary Navigation', 'onepress-imde' ),
'secondary' => __('Secondary Navigation', 'onepress-imde')
) );
// Customize the footer area (show also the secondary menu)
if ( ! function_exists( 'onepress_footer_site_info' ) ) {
/**
* Add Copyright and Credit text to footer
* @since 1.1.3
*/
function onepress_footer_site_info()
{
?>
<!-- shows our custom menu -->
<?php if( has_nav_menu( 'secondary', 'onepress-imde' ) ) {
?> <div class="footer-menu-container"> <?php
wp_nav_menu( array( 'theme_location' => 'secondary' ) );
?> </div> <?php
} ?>
<!-- end: shows our custom menu -->
<?php printf(esc_html__('Copyright %1$s %2$s %3$s', 'onepress'), '©', esc_attr(date('Y')), esc_attr(get_bloginfo())); ?>
<?php
}
}
?>