Forums

×

Warning

JUser: :_load: Unable to load user with ID: 158181
Medium
Offline
Resolved
0 votes
Can anyone advise how to change the default theme for ClearOS 7. I found an admin theme on github (https://github.com/clearos/theme-admin-lte) that I would like to experiment with. Any advice will be welcomed. Thanks
Sunday, June 19 2016, 02:01 AM
Share this post:
Responses (4)
  • Accepted Answer

    Monday, June 20 2016, 01:53 PM - #Permalink
    Resolved
    0 votes
    Hi Sean,

    I'm really glad someone is interested in theming! It took a lot of effort to be 'theme friendly', so if you created an alternative, it would be the reward of countless hours.

    The theme you found on GitHub was abandoned...we started out down the path of using AdminLTE which was chosen by a few of us in the devel as a good starting block. It was abandoned, unfortunately, as the marketing team input strayed farther and farther away from the template, and we ended up with a custom theme from scratch.

    So...I can guarantee you the theme won't work 'out of the box' without quite a bit of work.

    Essentially what you need to do is clone the Git repo to /usr/clearos/themes/ with a custom name...you will then see the theme as an option on the "Base Settings" page in Webconfig. (https://<IP>:81/app/base). Select your new theme and be prepared for a broken Webconfig.

    Essentially, you'll need to ensure that all the functions in the working theme exist and perform equivalently in your new themd. For the most part, those functions are in:

    /usr/clearos/themes/ClearOS-Admin/core (PHP)
    and
    /usr/clearos/themes/ClearOS-Admin/js (Javascript)

    A good starting place is to install the app-devel package which has a handy layout that exposes most (all?) of the widgets used in the theme. If you can get that page to load, you're 1/2 way there.

    B
    The reply is currently minimized Show
  • Accepted Answer

    Friday, April 24 2020, 02:35 AM - #Permalink
    Resolved
    0 votes
    Hi Ben;

    So I clone the theme /usr/clearos/themes/ClearOS-Admin
    and opened core/meta.php which point to https://www.clearos.com/resources/documentation/clearos
    which is result as being a dead link
    do you know where is this "documentation" ?
    The reply is currently minimized Show
  • Accepted Answer

    Friday, April 24 2020, 07:40 AM - #Permalink
    Resolved
    0 votes
    I'll see if the website people can find the correct link and fix the redirects. In the meanwhile, please see if you can find what you want at https://docs.clearos.com/en/developer-documentation? The move to here was never completed, unfortunately.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, April 24 2020, 07:44 AM - #Permalink
    Resolved
    0 votes
    Can I ask where you found the link? All documentation should be somewhere below https://www.clearos.com/clearfoundation/development/clearos/content:en_us:dev_start.
    The reply is currently minimized Show
Your Reply