[guadec-web/guadec2017] Fixed parent style and action names
- From: Oliver Gutierrez Suarez <ogutierrez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web/guadec2017] Fixed parent style and action names
- Date: Thu, 15 Jun 2017 12:58:10 +0000 (UTC)
commit 504f6e826b3d492c662de6aa3ec0a2d7d67081aa
Author: Oliver Gutierrez <ogutierrez redhat com>
Date: Thu Jun 15 13:57:50 2017 +0100
Fixed parent style and action names
guadec2017wp/functions.php | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/guadec2017wp/functions.php b/guadec2017wp/functions.php
index 92cdbe4..e93a855 100644
--- a/guadec2017wp/functions.php
+++ b/guadec2017wp/functions.php
@@ -1,16 +1,13 @@
<?php
-$parent_style = 'twentyfifteen-style';
-
-add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
+add_action( 'wp_enqueue_scripts', 'guadec2017wp_enqueue_styles' );
function my_theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
-
}
function my_theme_enqueue_styles() {
- $parent_style = 'parent-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
+ $parent_style = 'sensible-wp-style';
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
@@ -19,5 +16,5 @@ function my_theme_enqueue_styles() {
wp_get_theme()->get('Version')
);
}
-add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
+add_action( 'wp_enqueue_scripts', 'guadec2017wp_enqueue_styles' );
?>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]