Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #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

    #974777

    in 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, 6 months ago by insanityNL.
    #974786

    added the import line but no difference im afraid.
    My child theme seems to be set up correctly.

    Confused!

    #974798

    I have no plugins installed also. I have cleared the browser cache and tried different browsers but still no joy.

    Is there enfold person available?

    #974828

    Tried a different theme with child theme and all is working great so no hosting issues etc…

    #974947

    Hi 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,
    Victoria

    #975026

    Hi 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

    #975029

    Dear 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,
    Stefan

    #975220

    Hi Fras,

    Thank you for the credentials.
    Can you please explain which styles are not working in the child theme?

    Best regards,
    Victoria

    #975324

    Hi 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

    #975411

    Also i cant seem to see any style-sheets that are loading on the source code of the website, is that normal?

    Thanks

    #975483

    Hi 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,
    Victoria

    #975513

    Hi Victoria
    yes thanks i will disable this and see what happens

    Thanks

    #975740

    Hi 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,
    Nikko

    #975752

    Thanks Nikko & Victoria.
    All seems fine now.
    I was unaware of this feature to disable. Wish i new earlier, many thanks for your help.

    Cheers
    F

    #975807

    Hi 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

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘Chiuld style.css not loading properly’ is closed to new replies.