HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
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 Ex-Fanboy 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.

  • it reads the coy like an addon, however still generates the same error


Sign In or Register to comment.