-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
63 lines (47 loc) · 2.48 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
/* ---------------------------------------------------------------------------
* Child Theme URI | DO NOT CHANGE
* --------------------------------------------------------------------------- */
define( 'CHILD_THEME_URI', get_stylesheet_directory_uri() );
/* ---------------------------------------------------------------------------
* Define | YOU CAN CHANGE THESE
* --------------------------------------------------------------------------- */
// White Label --------------------------------------------
define( 'WHITE_LABEL', true );
// Static CSS is placed in Child Theme directory ----------
define( 'STATIC_IN_CHILD', true );
/* ---------------------------------------------------------------------------
* Enqueue Style
* --------------------------------------------------------------------------- */
add_action( 'wp_enqueue_scripts', 'mfnch_enqueue_styles', 101 );
function mfnch_enqueue_styles() {
// Enqueue the parent stylesheet
// wp_enqueue_style( 'parent-style', get_template_directory_uri() .'/style.css' ); //we don't need this if it's empty
// Enqueue the parent rtl stylesheet
if ( is_rtl() ) {
wp_enqueue_style( 'mfn-rtl', get_template_directory_uri() . '/rtl.css' );
}
// Enqueue the child stylesheet
wp_dequeue_style( 'style' );
wp_enqueue_style( 'style', get_stylesheet_directory_uri() .'/style.css');
}
function blue_plus_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() .'/style.css' );
wp_enqueue_style( 'bluebe-plus-style', get_stylesheet_directory_uri() . '/assets/css/bpstyle.css');
wp_enqueue_script( 'blue-plus-main-js', get_stylesheet_directory_uri() . '/assets/js/main.js');
}
add_action( 'wp_enqueue_scripts', 'blue_plus_styles', 20 );
/* ---------------------------------------------------------------------------
* Load Textdomain
* --------------------------------------------------------------------------- */
add_action( 'after_setup_theme', 'mfnch_textdomain' );
function mfnch_textdomain() {
load_child_theme_textdomain( 'betheme', get_stylesheet_directory() . '/languages' );
load_child_theme_textdomain( 'mfn-opts', get_stylesheet_directory() . '/languages' );
}
/* ---------------------------------------------------------------------------
* Override theme functions
*
* if you want to override theme functions use the example below
* --------------------------------------------------------------------------- */
// require_once( get_stylesheet_directory() .'/includes/content-portfolio.php' );