Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

Unable to create custom theme

It doesn't appear to be possible to create and apply a new theme.

New themes produce the following error:

The addon could not be enabled because it generated a fatal error:
Plugin not found.

To replicate the error:

  • In the themes folder make a copy of the bittersweet folder, then rename the new folder newtheme
  • In the newtheme folder edit the addon.json to make the theme unique
  • edit some of the css in design > custom.css
  • In the website apply the new theme

Thanks in advance for any help,

Comments

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    I did the following:

    cp -R bittersweet/ bettersweet

    nano bettersweet/addon.json

    {
        "name": "Better Sweet",
        "key": "bettersweet",
        "type": "theme"
    }
    

    echo "div {border: 1px solid black}" > bettersweet/design/custom.css

    When visiting the theme section in the dashboard I get a hint "The addon cache is outdated. Click here to fix."

    I click on it, choose my "Better Sweet" theme and don't have any problems...

    Are you sure that your "key" in the addon.json is exactly the same as the themes folder name?


  • Hi, you are correct - the folder name and the 'key' in addon.json have to match - this is case sensitive. Thanks.

Sign In or Register to comment.