WordPress.org

Ready to get started?Download WordPress

Forums

multiple css files: can they be combined? (4 posts)

  1. storyfirst
    Member
    Posted 4 years ago #

    After a meltdown, I reinstalled WordPress and looked for a theme that had these basics:

    light/white background
    three columns
    fixed width
    ajax comments and similar

    So now I've got Constructor up and running, but there's an issue that I'm not sure can be fixed, and from looking at other themes, I get the idea that it's not just Constructor.

    A lot of plugins have their own css, and then the theme also has multiple css files.

    I use cssedit to adjust things the way I want them, but this has become more difficult and sometimes impossible given the complex way the css files interact.

    So, is there a safe way to conflate all the css files into one? Or do I have to start from scratch.

    Any thoughts or suggestions much appreciated.

  2. ambrosite
    Member
    Posted 4 years ago #

    Yes, you can merge them all into one file. But pay attention to the load order: the code in the combined file must be in the same order that the separate files are being loaded in your header.

  3. storyfirst
    Member
    Posted 4 years ago #

    Okay, I'll give it a try. Thanks for getting back to me. One more question. If I can get it to work, can I then delete the individual files I've folded into the main css?

  4. ambrosite
    Member
    Posted 4 years ago #

    Yes, although I would suggest renaming them first, and then once you are sure you don't need them any more, delete them.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags