-
AuthorPosts
-
June 19, 2018 at 1:42 pm #974770
Hi
Im using a child theme and the style.css is not loading properly.
The quick css does work but this isn’t practical for me to use.
I managed to get some header css to work on the child style-sheet but now im unable to amend or add new styles.I can see on the source code that the child style is not loading.
any ideas.
Cheers
June 19, 2018 at 2:08 pm #974777in order for your styles.css for you child theme to work porperly it needs to contact the following lines:
/* Theme Name: ThemenameHere Description: The description of theme Version: Make up a version number Author: Name of Author Author URI: URL of Author License: License URI: Theme URI: url of domain where site is hosted Template: enfold */ @import url("../enfold/style.css"); /* Custom CSS - add custom css down below */
- This reply was modified 6 years, 5 months ago by insanityNL.
June 19, 2018 at 2:31 pm #974786added the import line but no difference im afraid.
My child theme seems to be set up correctly.Confused!
June 19, 2018 at 3:19 pm #974798I have no plugins installed also. I have cleared the browser cache and tried different browsers but still no joy.
Is there enfold person available?
June 19, 2018 at 5:31 pm #974828Tried a different theme with child theme and all is working great so no hosting issues etc…
June 19, 2018 at 8:53 pm #974947Hi Fras,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Which code is not applied?
This is not needed
@import url(“../enfold/style.css”);
Enfold does not use this file.Best regards,
VictoriaJune 19, 2018 at 10:38 pm #975026Hi Victoria
admin access added for you.
I have activated the child theme again as i reverted by to the enfold theme, which isn’t what i need really.
As mentioned above any other theme & child theme works fine, just this one unfortunately.If you want ftp access just let me know.
Thanks
June 19, 2018 at 10:48 pm #975029Dear Victoria
I’ve actually the same problem. Even the quick css is not working and the .container max-width of 1310px is ignored. I’ve made a workaround and copied the css from the child “style.css” to the wordpress inbuild custom css feature. This works fine for the moment, but should not be the solution.PS. A few days ago, all was fine. An update (theme, wordpress, plugin?) must cause this problem.
Best regards,
StefanJune 20, 2018 at 11:41 am #975220Hi Fras,
Thank you for the credentials.
Can you please explain which styles are not working in the child theme?Best regards,
VictoriaJune 20, 2018 at 2:48 pm #975324Hi Victoria
After installation i styled it between quick css and style.css as the child styleheet stopped working.
Anything i add or amend in the style.css does not work now. (I corrected the semicolons thanks)
I have given you ftp access and you should no what i mean if you try to update or add to the style.css a couple of times.kind regards
June 20, 2018 at 6:16 pm #975411Also i cant seem to see any style-sheets that are loading on the source code of the website, is that normal?
Thanks
June 20, 2018 at 9:21 pm #975483Hi Fras,
You have the option for merging Css enabled, it does not re-merge all the files on the styles.css save and so any time you add the code there, you need to save the theme options again for the files to be merged and minified.
This is why it feels like the code in there does not work. You can disable css merging and enable it again when you’re done with everything.Does this make sense?
Best regards,
VictoriaJune 20, 2018 at 10:11 pm #975513Hi Victoria
yes thanks i will disable this and see what happensThanks
June 21, 2018 at 10:50 am #975740Hi Fras,
I have disabled CSS file merging and compression in Enfold > Performance and could see your child theme’s style.css working properly (link in private content).
I didn’t see anything different when this was enabled and disabled, I see few css codes and it does work fine on my end.
Can you tell us which code you added that didn’t work?Best regards,
NikkoJune 21, 2018 at 11:27 am #975752Thanks Nikko & Victoria.
All seems fine now.
I was unaware of this feature to disable. Wish i new earlier, many thanks for your help.Cheers
FJune 21, 2018 at 2:45 pm #975807Hi Fras,
No worries, it’s better if you enable it but probably when you load the site the cached version of the css is loaded and that’s why it seems that it’s not working.
Anyway, just glad that we could help :)
Feel free to comeback if you need further assistance.
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Chiuld style.css not loading properly’ is closed to new replies.