-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
37 lines (34 loc) · 1 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
36
37
<?php
/**
* @package Rams Child
* @author Julien Liabeuf <[email protected]>
* @license GPL-2.0+
* @link https://julienliabeuf.com
* @copyright 2016 Julien Liabeuf
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
add_action( 'wp_enqueue_scripts', 'rams_child_load_resources' );
/**
* Load child theme resources
*
* @since 1.0.0
* @return void
*/
function rams_child_load_resources() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
add_action( 'widgets_init', 'rams_child_register_sidebar' );
function rams_child_register_sidebar() {
register_sidebar( array(
'name' => esc_attr__( 'Main Sidebar', 'rams-child' ),
'id' => 'main',
'description' => __( 'Widgets in this area will be shown on all posts and pages.', 'rams-child' ),
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<p class="widget-title">',
'after_title' => '</p>',
) );
}