• Resolved tompoezie

    (@tompoezie)


    Hi,

    I made an empty base-theme for theme development. I would like to use less instead of css. WordPress requires a file style.css in the theme folder (/wp-admin/themes.php -> “Stylesheet is missing.”). Is there a way to bypass this check, or change the check to style.less? (Without modifying core files of course)

    Kind regards,
    Tom

Viewing 2 replies - 1 through 2 (of 2 total)
  • You need to compile the .less files to a .css file. Not only does WordPress require a style.css file, browsers won’t be able to interpret the .less file.

    Thread Starter tompoezie

    (@tompoezie)

    Yes, the css is only generated after the first edit of style.less. Best solution is to just add an empty style.css to the theme. This will be automatically overwritten by the lesscompiler.

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

The topic ‘Custom theme with less’ is closed to new replies.