Wordpress child theme style.css not working

前端 未结 5 1912
[愿得一人]
[愿得一人] 2021-02-01 21:34

I have created a file structure in the same format as my parent theme. My parent theme is called Alpine and within Alpine there is a functions.php and style.css file. There do n

5条回答
  •  时光取名叫无心
    2021-02-01 22:02

    Craig Hick's answer worked for me and I also realize why my default code from the Wordpress documentation wasn't working.

      get('Version')
        ); }
    

    In my case, the line wp_get_theme()->get('Version') returned 1.0.0 which was the same version number as the parent theme. So I just changed the child theme css version number to 1.0.1 and it worked.

提交回复
热议问题