CSS changes to stylesheet not working
-
Hi,
I have created a child theme for my astrid theme. I used the instructions here when I did so: https://codex.ww.wp.xz.cn/Child_Themes .
My stylesheet for my child theme looks like this:
/*
Theme Name: Astrid Child
Template: astrid
Author: aThemes
Description: Astrid can help you to quickly create an awesome business website.
Version: 1.14.1492029142
Updated: 2017-04-12 20:32:22*/
hentry {
background-color: #000;
}My problem is that even if I add CSS there (like the background-color above) the changes does not apply on my site. The site is http://www.howtobookyourtrip.com
If I choose to add it through “Edit CSS” and then “Additional CSS” it applies though. But it does not work if I put it directly in the stylesheet. Why on earth could that be? I have searched for hours and hours but I have no clue…
Maybe something is wrong in my functions.php? It looks like this:
<?php
function my_theme_enqueue_styles() {$parent_style = ‘astrid-style’; // This is ‘twentyfifteen-style’ for the Twenty Fifteen theme.
wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘astrid-child-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array( $parent_style ),
wp_get_theme()->get(‘Version’)
);
}
add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
?>Any help is very appreciated. I would like to be able to put things directly in the stylesheet instead of through “additional CSS”.
Regards,
Axel
The topic ‘CSS changes to stylesheet not working’ is closed to new replies.