-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
34 lines (30 loc) · 965 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
<?php
// Registra as sidebars
function tutsup_sidebars() {
register_sidebar( array(
'name' => 'Sidebar',
'id' => 'sidebar-1',
'description' => 'Widgets da sidebar.',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h4 class="sidebar-widget-title">',
'after_title' => '</h4>',
) );
register_sidebar( array(
'name' => 'Rodapé',
'id' => 'footer-1',
'description' => 'Widgets do rodapé.',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h4 class="footer-widget-title">',
'after_title' => '</h4>',
) );
}
add_action( 'widgets_init', 'tutsup_sidebars' );
// Registra os menus
function register_my_menu() {
register_nav_menu('menu',__( 'Menu' ));
}
add_action( 'init', 'register_my_menu' );
// Adiciona thumbanail no post
add_theme_support( 'post-thumbnails' );