PalsyP Posted July 31, 2022 Share Posted July 31, 2022 Have never used PS before, so be easy on me. Am trying to customise the classic theme css (under childclassic).... Edited the .yml file, added the css file, etc...... but nothing worked..... So I looked at the source code and saw that the original theme.css is added TWICE - the second one AFER my custom css file! Thought I was going mad. What would do this? See attachment. Link to comment Share on other sites More sharing options...
ComGrafPL Posted July 31, 2022 Share Posted July 31, 2022 First and last code lines are 100% same? Link to comment Share on other sites More sharing options...
PalsyP Posted July 31, 2022 Author Share Posted July 31, 2022 Exactly the same Even tried removing use_parent_assets: true, no difference Link to comment Share on other sites More sharing options...
endriu107 Posted August 1, 2022 Share Posted August 1, 2022 Put here your theme.yml content. Link to comment Share on other sites More sharing options...
PalsyP Posted August 1, 2022 Author Share Posted August 1, 2022 parent: classic name: childclassic display_name: childclassic version: 1.0.0 assets: use_parent_assets: true css: all: - id: custom-css path: assets/css/custom.css media: all priority: 1000 Link to comment Share on other sites More sharing options...
endriu107 Posted August 1, 2022 Share Posted August 1, 2022 Try that: parent: classic name: childclassic display_name: childclassic version: 1.0.0 assets: use_parent_assets: false in themes/childclassic/assets/css you also shouldn't have theme.css file only custom.css Link to comment Share on other sites More sharing options...
PalsyP Posted August 1, 2022 Author Share Posted August 1, 2022 54 minutes ago, endriu107 said: Try that: in themes/childclassic/assets/css you also shouldn't have theme.css file only custom.css Still same..... By the way, there is no theme.css in my child theme Link to comment Share on other sites More sharing options...
endriu107 Posted August 1, 2022 Share Posted August 1, 2022 Did you have in child theme head.tpl file? Link to comment Share on other sites More sharing options...
PalsyP Posted August 1, 2022 Author Share Posted August 1, 2022 3 minutes ago, endriu107 said: Did you have in child theme head.tpl file? Nope, just footers in there Link to comment Share on other sites More sharing options...
PalsyP Posted August 3, 2022 Author Share Posted August 3, 2022 (edited) Ok, so for a laugh, I enabled Smart cache for CSS and lo and behold, it worked?! Confused much Edited August 3, 2022 by PalsyP (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now