My child theme style.css is not working?
-
So I am developing locally on my mac with Mamp and I have a bootstrap based wordpress theme that I am trying to make a child theme for and for some reason the styles that I give in the style.css within the child theme folder is not working.
I checked my directory is correct and my stylesheet.my-theme/wp-content/themes/my-theme
my-theme/wp-content/themes/my-theme-child ( this is where I put my style.css )Here is my style.css ( Name of the theme is “bootstraptheme” )
Theme Name: BootstrapTheme Child Theme URI: https://example.com/bootstraptheme/ Description: Bootstrap Child Theme Author: Dan Elmer Author URI: https://example.com Template: bootstraptheme Version: 1.0.0 Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready Text Domain: bootstraptheme-child @import url("../bootstraptheme/style.css"); /* =Theme customization starts here -------------------------------------------------------------- */ body, html, * { background-color:#d11111 !important; } body { border: 12px solid red !important; } h1, h2, h3, h4, p, a { color:red !important; }
As you notice I gave random styles just to test that the styles are working which they are not.
And no it is not my cache I have emptied that already and tested in other browsers.
And yes I have activated the child-theme in my admin area.
- The topic ‘My child theme style.css is not working?’ is closed to new replies.