• NiallASD

    (@niallasd)


    Hi,

    I have been working on this site for a while and have built my own theme – it will soon be redesigned by a third party.

    The site includes a kit builder which I have styled to my client’s liking using CSS, this will stay under my control.

    I added all my CSS to style.css, but this will soon be cleared out to fit the redesign.

    Is there a way I can create a separate CSS file for the kit builder styling so that I don’t need to use style.css?

    I’d prefer not to use Additional CSS within WordPress as that will also be used by the third party.

    • This topic was modified 4 years ago by NiallASD.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @niallasd

    It looks like you want to add custom css that may not be lost when any theme updates changes done by third party.

    You can use below plugin to add custom styling.

    https://ww.wp.xz.cn/plugins/simple-custom-css/

    I hope this will help you!

    Thread Starter NiallASD

    (@niallasd)

    Thanks, is there a way to do it without a plugin – like creating a CSS file and uploading to the server?

    mrtom414

    (@mrtom414)

    just enqueue a different style sheet in functions.php. You will still need the style.css because it is required by WordPress. You can enqueue as many CSS files as you want.

    Thread Starter NiallASD

    (@niallasd)

    Thanks, now I’m curious as to which is best – plugin or enqueuing a style sheet.

    Use a plug in if you want it independent of the theme. If it part of your theme place it in the theme.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Separating CSS by files’ is closed to new replies.