-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
43 lines (38 loc) · 927 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
37
38
39
40
41
42
43
<?php
add_theme_support('post-thumbnails');
?>
<?php
register_nav_menus( array(
'top' => __( 'Top Menu', 'aog-theme' ),
) );
?>
<?php
add_theme_support( 'custom-logo', array(
'width' => 120,
'flex-width' => true,
) );
?>
<?php require 'customizer.php'; ?>
<?php
function aog_widgets_init() {
register_sidebar( array(
'name' => __( 'Hero', 'aog' ),
'id' => 'hero',
'description' => __( 'Bloco destaque na home', 'aog' ),
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
));
register_sidebar( array(
'name' => __( 'Newsletter', 'aog' ),
'id' => 'newsletter',
'description' => __( 'Bloco de newsletter', 'aog' ),
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
));
}
add_action( 'widgets_init', 'aog_widgets_init' );
?>