SpaceIgniter Posted February 11, 2021 Share Posted February 11, 2021 I'm editing a copy/child theme of Twenty One. My cusom.css changes are not applying however? I've cleared the templates cache as well. Thank you for any advice π Β 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 12, 2021 Share Posted February 12, 2021 18 hours ago, SpaceIgniter said: My cusom.css changes are not applying however? you often have to add !important to the CSS changes - are you doing that? and I assume the file is called custom.css and not cusom.css ?? π 1 Quote Link to comment Share on other sites More sharing options...
SpaceIgniter Posted February 12, 2021 Author Share Posted February 12, 2021 10 minutes ago, brian! said: you often have to add !important to the CSS changes - are you doing that? and I assume the file is called custom.css and not cusom.css ?? π Hi Brian, Yes, it was just a typo. My mistake. I'm trying to edit the header and footer colour. Is the custom.css file the correct place to do it? TBH, I'm unsure where to edit it exactly. Searching hasn't helped much. I've tried the Theme.css file as well. Not winning. Could you possibly give me some guidance with the CSS? Thank you, Enjoy your weekend. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 12, 2021 Share Posted February 12, 2021 1 minute ago, SpaceIgniter said: Could you possibly give me some guidance with the CSS? it should be in the /css/custom.css file within your child theme folder - the file won't exist by default (even in the main 21 theme), but that's where WHMCS would expect to find custom.css changes. there was a bug in v8.1 where the path to custom.css failed in certain environments (e.g Windows), but assuming that's not occurring to you, then the above should work... there was a hotfix released for that bug, though updating to v8.1.1 would probably achieve the same goal. 1 Quote Link to comment Share on other sites More sharing options...
SpaceIgniter Posted February 12, 2021 Author Share Posted February 12, 2021 1 minute ago, brian! said: it should be in the /css/custom.css file within your child theme folder - the file won't exist by default (even in the main 21 theme), but that's where WHMCS would expect to find custom.css changes. there was a bug in v8.1 where the path to custom.css failed in certain environments (e.g Windows), but assuming that's not occurring to you, then the above should work... there was a hotfix released for that bug, though updating to v8.1.1 would probably achieve the same goal. Thanks., I updated last night. It's a Linux Server. It made no difference. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 12, 2021 Share Posted February 12, 2021 1 minute ago, SpaceIgniter said: Thanks., I updated last night. It's a Linux Server. It made no difference. any chance of CloudFlare or some other caching option preventing changes from showing immediately ?? 1 Quote Link to comment Share on other sites More sharing options...
SpaceIgniter Posted February 12, 2021 Author Share Posted February 12, 2021 (edited) 10 minutes ago, brian! said: any chance of CloudFlare or some other caching option preventing changes from showing immediately ?? HI Brian, I'm not signed up with CloudFlare or any other CDN or caching service. I've taken the example from the thread you posted to test. This is the content of the custom.css file: Quote Β /* ***************************************************** Β Β ** Custom Stylesheet ** Β Β Any custom styling you want to apply should be Β Β defined here. ***************************************************** */ .footer { Β Β background-color: #000000; Β } Β Β Edited February 12, 2021 by SpaceIgniter 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 12, 2021 Share Posted February 12, 2021 for a child of 21, I think I posted in that thread that it should be... footer.footer { background-color: #000000 !important; } that for me is working in a child theme. 1 Quote Link to comment Share on other sites More sharing options...
SpaceIgniter Posted February 12, 2021 Author Share Posted February 12, 2021 5 minutes ago, brian! said: for a child of 21, I think I posted in that thread that it should be... footer.footer { background-color: #000000 !important; } that for me is working in a child theme. Great stuff Brian, Really appreciate it. That sorted the problem. I also renamed the Theme directory from twenty_one_custom to twenty-one-custom. Could you possibly assist with the code for the Header colour too please? Thanks so much π 0 Quote Link to comment Share on other sites More sharing options...
SpaceIgniter Posted February 12, 2021 Author Share Posted February 12, 2021 (edited) Managed to fix the Header Brian, Quote Β header.header { Β Β Β background-color: #(colourIchose); !important; } Could you please help me change the Header Links Colours? My CSS skills aren't that good yet. Edit: seems the Header is still stuffed. Won't change colours. Edited February 12, 2021 by SpaceIgniter 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 12, 2021 Share Posted February 12, 2021 41 minutes ago, SpaceIgniter said: Could you possibly assist with the code for the Header colour too please? depends what you're defining as the header... e. g you could copy the above code, rename footer to header and it would colour the header to black. π header.header { background-color: #000000 !important; } if you use .navbar-light instead of header.header, then.... 9 minutes ago, SpaceIgniter said: Edit: seems the Header is still stuffed. is that a technical term? π 10 minutes ago, SpaceIgniter said: Could you please help me change the Header Links Colours? footer.footer { background-color: #000000 !important; } .navbar-light { background-color: pink !important; } .main-navbar-wrapper { background-color: red !important; } ideally, you will probably need toΒ use # hex colours in those CSS lines, I was just saving time by using the colour names. π btw - right clicking on any element in the browser will be your friend for doing this... you should then be able to identify the relevant class or ID that needs to be changed. 1 Quote Link to comment Share on other sites More sharing options...
SpaceIgniter Posted February 12, 2021 Author Share Posted February 12, 2021 Yep. That technical term sucked π Brian, you are a superhero man. Thank you so much. Looks great now π 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.